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

@@ -108,11 +108,10 @@ catch() {
automated=no
progress() {
local title='Security Onion Setup'
local msg=${1:-'Please wait while installing...'}
if [ $automated == no ]; then
whiptail --title "$title" --gauge "$msg" 6 70 0 # append to text
whiptail --title "$whiptail_title" --gauge "$msg" 6 70 0 # append to text
else
cat >> $setup_log 2>&1
fi