zenity/scripts/password.sh
2022-05-11 18:19:13 +01:00

14 lines
No EOL
263 B
Bash
Executable file

#!/bin/sh
ENTRY=`zenity --password --username`
case $? in
0)
echo "User Name: `echo $ENTRY | cut -d'|' -f1`"
echo "Password : `echo $ENTRY | cut -d'|' -f2`"
;;
1)
echo "Stop login.";;
-1)
echo "An unexpected error has occurred.";;
esac