diff options
-rw-r--r-- | src/core/procedures/interactive | 9 | ||||
-rwxr-xr-x | src/fifa.sh | 8 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive index 82b2d26..2c646bc 100644 --- a/src/core/procedures/interactive +++ b/src/core/procedures/interactive @@ -110,13 +110,10 @@ mainmenu() "None" "\Zb\Z1Warning\Z0\ZB: you must install your own bootloader!" 2>$ANSWER execute worker install_bootloader "`cat $ANSWER`";; "7") - echo "" - echo "If the install finished successfully, you can now type 'reboot'" - echo "to restart the system." - echo "" - exit 0 ;; + notify "If the install finished successfully, you can now type 'reboot' to restart the system." + stop_installer ;; *) - ask_yesno "Abort Installation?" && exit 0 + ask_yesno "Abort Installation?" && stop_installer ;; esac } diff --git a/src/fifa.sh b/src/fifa.sh index dd08408..a5b7749 100755 --- a/src/fifa.sh +++ b/src/fifa.sh @@ -139,6 +139,14 @@ start_process () } +# use this function to stop the installation procedure. +# $1 exit code (optional) +stop_installer () +{ + log "-------------- STOPPING INSTALLATION ----------" + exit $1 +} + ###### perform actual logic ###### echo "Welcome to $TITLE" |