Add exit check to new menu

This commit is contained in:
William Wernert
2021-04-19 13:45:01 -04:00
parent c907d416df
commit 59247b4579

View File

@@ -1086,6 +1086,10 @@ whiptail_net_method() {
local option_count=$(( ${#options[@]} / 2 )) local option_count=$(( ${#options[@]} / 2 ))
network_traffic=$(whiptail --title "Security Onion Setup" --menu "$msg" $height 75 $option_count "${options[@]}" 3>&1 1>&2 2>&3) network_traffic=$(whiptail --title "Security Onion Setup" --menu "$msg" $height 75 $option_count "${options[@]}" 3>&1 1>&2 2>&3)
local exitstatus=$?
whiptail_check_exitstatus $exitstatus
network_traffic=$(echo "${network_traffic^^}" | tr -d ' ' | tr '+' '_') network_traffic=$(echo "${network_traffic^^}" | tr -d ' ' | tr '+' '_')
} }