From e1e56bd966f8f7c9daec318169714b7a7f68a26b Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 1 Jan 2022 23:21:51 -0300 Subject: [PATCH] Change welcome msg if steps > 0 --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5d9b59d..15e980d 100755 --- a/install.sh +++ b/install.sh @@ -399,7 +399,13 @@ runScript() { fi fi - whiptail --title "CocoASAIS" --msgbox "Welcome to CocoASAIS!" 0 0 + if [ $i -gt 0 ]; then + welcomeMsg="Welcome back to CocoASAIS!" + else + welcomeMsg="Welcome to CocoASAIS!" + fi + + whiptail --title "CocoASAIS" --msgbox "${welcomeMsg}" 0 0 while [ $i -le "${#steps[@]}" ]; do ${steps[$i]}