Ver código fonte

Field separator

Bob Mottram 8 anos atrás
pai
commit
82f43da167
Nenhuma conta conectada ao e-mail do autor de commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/meshavahi

+ 1
- 1
src/meshavahi Ver arquivo

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