This commit is contained in:
Bob Mottram 2017-12-08 15:09:47 +00:00
parent c6c28e5ce4
commit fffcf01dc7
1 changed files with 6 additions and 6 deletions

View File

@ -906,21 +906,21 @@ if [ \$no_of_users -gt 0 ]; then
if [ ! -f /home/$MY_USERNAME/showusers ]; then
echo '#!/bin/bash' > /home/$MY_USERNAME/showusers
echo 'data=$(' >> /home/$MY_USERNAME/showusers
echo 'data=\$(' >> /home/$MY_USERNAME/showusers
echo 'cat /tmp/Users.txt | \' >> /home/$MY_USERNAME/showusers
echo " awk -F ' ' '{" >> /home/$MY_USERNAME/showusers
echo ' for(i=1;i<=NF;i++){' >> /home/$MY_USERNAME/showusers
echo ' print $i;' >> /home/$MY_USERNAME/showusers
echo ' print \$i;' >> /home/$MY_USERNAME/showusers
echo ' }' >> /home/$MY_USERNAME/showusers
echo "}' | \\" >> /home/$MY_USERNAME/showusers
echo ' zenity --list \' >> /home/$MY_USERNAME/showusers
echo " --title='$StrMeshUsers' \\" >> /home/$MY_USERNAME/showusers
echo " --column='$StrUsername' --column='$StrToxID' \\" >> /home/$MY_USERNAME/showusers
echo " --title='\$StrMeshUsers' \\" >> /home/$MY_USERNAME/showusers
echo " --column='\$StrUsername' --column='\$StrToxID' \\" >> /home/$MY_USERNAME/showusers
echo ' --print-column=2 --hide-column=2 --width=250 --height=400)' >> /home/$MY_USERNAME/showusers
echo 'if [ ! $data ]; then' >> /home/$MY_USERNAME/showusers
echo 'if [ ! \$data ]; then' >> /home/$MY_USERNAME/showusers
echo ' exit 0' >> /home/$MY_USERNAME/showusers
echo 'fi' >> /home/$MY_USERNAME/showusers
echo 'echo "$data" | xclip -selection clipboard' >> /home/$MY_USERNAME/showusers
echo 'echo "\$data" | xclip -selection clipboard' >> /home/$MY_USERNAME/showusers
chmod +x /home/$MY_USERNAME/showusers
fi