Tested out dialog a bit
This commit is contained in:
@@ -5,22 +5,23 @@
|
||||
# Testing out dialog
|
||||
|
||||
# Variables
|
||||
$Dialog="/usr/bin/dialog"
|
||||
Dialog="/usr/bin/dialog"
|
||||
|
||||
# Sanity check
|
||||
if [ ! -x $Dialog ]; then
|
||||
echo "Can't execute $Dialog"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Main
|
||||
dialog --backtitle "Epic App" --msgbox \
|
||||
$Dialog --backtitle "Epic App" --msgbox \
|
||||
"Welcome to Epic App, hit enter to continue" 10 60
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Quitting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dialog --backtitle "Epic App" --title "U sure?" --yesno \
|
||||
$Dialog --backtitle "Epic App" --title "U sure?" --yesno \
|
||||
"Are you sure you want to continue?" 10 60
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Okay, you said no, quitting"
|
||||
@@ -35,10 +36,10 @@ if [ $? -ne 0 ]; then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
dialog --backtitle "Epic App" --infobox "Booting up..." 10 60
|
||||
$Dialog --backtitle "Epic App" --infobox "Booting up..." 10 60
|
||||
sleep 3
|
||||
|
||||
dialog --backtitle "Epic App" --pause "Waiting to get ready..." 10 60 5
|
||||
$Dialog --backtitle "Epic App" --pause "Waiting to get ready..." 10 60 5
|
||||
if [ $? -eq 254 ]; then
|
||||
echo "Ok, aborting"
|
||||
exit 2
|
||||
|
Reference in New Issue
Block a user