Pārlūkot izejas kodu

List of unique users

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
9a7ee7bca7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/freedombone-image-customise

+ 1
- 1
src/freedombone-image-customise Parādīt failu

@@ -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