瀏覽代碼

List of unique users

Bob Mottram 8 年之前
父節點
當前提交
9a7ee7bca7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-image-customise

+ 1
- 1
src/freedombone-image-customise 查看文件

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