From 59247b4579db88a914a274060a0e259fb42df9f8 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Mon, 19 Apr 2021 13:45:01 -0400 Subject: [PATCH] Add exit check to new menu --- setup/so-whiptail | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/so-whiptail b/setup/so-whiptail index 06a1afec1..35c9f53ab 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -1086,6 +1086,10 @@ whiptail_net_method() { 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) + + local exitstatus=$? + whiptail_check_exitstatus $exitstatus + network_traffic=$(echo "${network_traffic^^}" | tr -d ' ' | tr '+' '_') }