List of unique users

This commit is contained in:
Bob Mottram 2016-11-03 19:41:12 +00:00
parent 32aaaebe9d
commit 9a7ee7bca7
1 changed files with 1 additions and 1 deletions

View File

@ -770,7 +770,7 @@ function configure_user_interface {
# Produce a text file on the desktop listing users on the mesh # Produce a text file on the desktop listing users on the mesh
cat <<EOF > $rootdir/usr/bin/list-tox-users cat <<EOF > $rootdir/usr/bin/list-tox-users
#!/bin/bash #!/bin/bash
users_list=\$(lstox | awk -F ' ' '{\$1=""; print \$0}' | sed -e 's/^[[:space:]]*//' | sort -d) users_list=\$(lstox | awk -F ' ' '{\$1=""; print \$0}' | sed -e 's/^[[:space:]]*//' | sort -d | uniq)
if [ ! \$users_list ]; then if [ ! \$users_list ]; then
no_of_users=0 no_of_users=0
else else