projects
/
whiptailexamples
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
db0d1d5fc56de5e35c0032bf1a508ac58f0a3658
[whiptailexamples/.git]
/
inputbox.sh
1
#!/bin/bash
2
PET=$(whiptail --title "Test Free-form Input Box" --inputbox "What is your pet's name?" 10 60 Wigglebutt 3>&1 1>&2 2>&3)
3
4
exitstatus=$?
5
if [ $exitstatus = 0 ]; then
6
echo "Your pet name is:" $PET
7
else
8
echo "You chose Cancel."
9
fi