get rid of other exit-script

This commit is contained in:
nicedevil007 2023-04-09 17:13:30 +02:00
parent 62586bcb41
commit 9e23c46f0e
1 changed files with 8 additions and 2 deletions

View File

@ -20,9 +20,15 @@ $STD apk add argon2
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if NEWTOKEN=$(whiptail --passwordbox "Setup your ADMIN-TOKEN (make it strong)" 10 58 3>&1 1>&2 2>&3); then if NEWTOKEN=$(whiptail --passwordbox "Setup your ADMIN-TOKEN (make it strong)" 10 58 3>&1 1>&2 2>&3); then
if [[ -z "$NEWTOKEN" ]]; then exit-script; fi if [[ -z "$NEWTOKEN" ]]; then
clear
echo -e "⚠ User exited script \n"
exit
fi
else else
exit-script clear
echo -e "⚠ User exited script \n"
exit
fi fi
clear clear