List tox users in a friendlier way

This commit is contained in:
Bob Mottram 2016-08-02 22:44:51 +01:00
parent 154ed49fd7
commit 3684e93896
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 3 additions and 1 deletions

View File

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