Whiptail title fixes

- Use a variable for the title
- Fix cases where the whiptail title wasn't changed previously
This commit is contained in:
William Wernert
2021-06-02 12:38:32 -04:00
parent dd7388e577
commit b3f2c60065
7 changed files with 121 additions and 115 deletions

View File

@@ -896,7 +896,10 @@ compare_main_nic_ip() {
This is not a supported configuration, please remediate and rerun setup.
EOM
[[ -n $TESTING ]] || whiptail --title "Security Onion Setup" --msgbox "$message" 10 75
[[ "$WHATWOULDYOUSAYYAHDOHERE" == "setup" ]] || local whiptail_title="so-monitor-add"
[[ -n $TESTING ]] || whiptail --title "$whiptail_title" --msgbox "$message" 10 75
kill -SIGINT "$(ps --pid $$ -oppid=)"; exit 1
fi
else