projects
/
whiptailexamples
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
colors example
[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