[fix] Always exit on early failure

This commit is contained in:
William Wernert
2020-06-10 15:32:46 -04:00
parent 7de02752e5
commit 07b2f2885c

View File

@@ -54,7 +54,7 @@ function progress() {
if grep -q "ERROR" $setup_log || [[ -s /var/spool/mail/root ]]; then
if [[ $automated == no ]]; then whiptail_setup_failed; else exit 1; fi
if [[ -z $SKIP_REBOOT ]]; then shutdown -r now; fi
if [[ -z $SKIP_REBOOT ]]; then shutdown -r now; else exit 1; fi
else
if [ $automated == no ]; then
whiptail --title "Security Onion Install" --gauge 'Please wait while installing' 6 60 0