Field separator

This commit is contained in:
Bob Mottram 2016-09-12 00:15:54 +01:00
parent 1a8250f2b1
commit 82f43da167
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ function detect_new_tox_users {
if [[ $line != "Failed*" && $line != "data "* && $line != "Anon "* && $line != "anon "* ]]; then
if ! grep -q "$line" $PREV_TOX_USERS_FILE; then
# get the nick of the user
toxidstr=$(echo "$line" | awk '{print $(NF)}')
toxidstr=$(echo "$line" | awk -F ' ' '{print $(NF)}')
toxuser=$(echo "$line" | sed "s| $toxidstr||g")
if [ -r "/home/$MESH_USERNAME/.dbus/Xdbus" ]; then