[fix] Set $percentage since it only exists in previous subshell

This commit is contained in:
William Wernert
2020-07-17 15:38:14 -04:00
parent d3529686cc
commit 3c855ed793

View File

@@ -631,6 +631,7 @@ if [[ -n $SO_ERROR ]]; then
whiptail_setup_failed
else
{
export percentage=95 # set to last percentage used in previous subshell
if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then
set_progress_str 98 "Running so-allow -${ALLOW_ROLE} for ${ALLOW_CIDR}"
IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1