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