[fix] Provide feedback when first running script, and execute whiptail commands

This commit is contained in:
William Wernert
2020-04-20 15:41:01 -04:00
parent 12e87d119b
commit 739989473d

View File

@@ -26,7 +26,7 @@ export setup_type
case "$setup_type" in
iso | network) # Accepted values
true
echo "Beginning Security Onion $setup_type install"
;;
*)
echo "Invalid install type, must be 'iso' or 'network'"
@@ -49,9 +49,7 @@ fi
setterm -blank 0
if whiptail_you_sure; then
true
else
if ! (whiptail_you_sure); then
echo "User cancelled setup.">> $setup_log 2>&1
whiptail_cancel
fi