Change welcome msg if steps > 0

This commit is contained in:
Santiago Lo Coco 2022-01-01 23:21:51 -03:00
parent 20f10577c2
commit e1e56bd966
1 changed files with 7 additions and 1 deletions

View File

@ -399,7 +399,13 @@ runScript() {
fi fi
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 while [ $i -le "${#steps[@]}" ]; do
${steps[$i]} ${steps[$i]}