From 82f43da16761408eb476a2eb75a76a684d4a5291 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 12 Sep 2016 00:15:54 +0100 Subject: [PATCH] Field separator --- src/meshavahi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshavahi b/src/meshavahi index 9b36fc0f..326c43b6 100755 --- a/src/meshavahi +++ b/src/meshavahi @@ -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