Przeglądaj źródła

List tox users in a friendlier way

Bob Mottram 8 lat temu
rodzic
commit
3684e93896
Brak konta powiązanego z e-mailem autora
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3
    1
      src/zeronetavahi

+ 3
- 1
src/zeronetavahi Wyświetl plik

@@ -109,7 +109,9 @@ function ipfs_bootstrap {
109 109
 }
110 110
 
111 111
 function detect_tox_users {
112
-	lstox > $TEMPFILE
112
+	# don't show the first peer field
113
+	lstox | awk -F ' ' '{$1=""; print $0}' | sed -e 's/^[[:space:]]*//' | sort -d > $TEMPFILE
114
+
113 115
 	toxctr=0
114 116
 	echo '<ol type="square">' >> $TOX_USERS_FILE.new
115 117
 	while IFS='' read -r line || [[ -n "$line" ]]; do