From ecfca86f0e2fb2ae71db003152b478e15e81e6c8 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 5 Jan 2022 23:31:22 -0300 Subject: [PATCH] Automate log --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index ef4e92b..13ddab7 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,6 @@ logAndExit() { printf "%d", (x == int(x)) ? x : int(x) + 1 }') whiptail --msgbox "$str" $((5+height)) 60 3>&1 1>&2 2>&3 - saveVar "lastStep" "${2}" exit 1 } @@ -567,7 +566,9 @@ runScript() { whiptail --title "CocoASAIS" --msgbox "${welcomeMsg}" 0 0 while [ $i -le "${#steps[@]}" ]; do - ${steps[$i]} + step=${steps[$i]} + saveVar "lastStep" "$step" + $step ((i++)) done }