Quellcode durchsuchen

Field separator

Bob Mottram vor 8 Jahren
Ursprung
Commit
82f43da167
Es ist kein Account mit dieser Commiter-Email verbunden
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/meshavahi

+ 1
- 1
src/meshavahi Datei anzeigen

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