List of unique users
This commit is contained in:
parent
32aaaebe9d
commit
9a7ee7bca7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue