projects
/
whiptailexamples
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
readme and license
[whiptailexamples/.git]
/
passwd.sh
1
#!/bin/bash
2
PASSWORD=$(whiptail --title "Test Password Box" --passwordbox "Enter your password and choose Ok to continue." 10 60 3>&1 1>&2 2>&3)
3
4
exitstatus=$?
5
if [ $exitstatus = 0 ]; then
6
echo "Your password is:" $PASSWORD
7
else
8
echo "You chose Cancel."
9
fi