From 8ca8c599b9b6334dd31892392470c664530cc855 Mon Sep 17 00:00:00 2001 From: mara Date: Tue, 4 Jun 2024 09:44:51 +0200 Subject: [PATCH] PROGRAMS_EXIT_STATUS --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index e490d7d..984de75 100644 --- a/install.sh +++ b/install.sh @@ -147,6 +147,13 @@ PROGRAMS=$(whiptail --title "The Install selection" --checklist --separate-outpu # See the actual installation below - Install selection choose what to install End +PROGRAMS_EXIT_STATUS=$? + +if [ $PROGRAMS_EXIT_STATUS != 0 ]; then + echo -e "${RED} Cancel - You have now stopped the installation. ${NC}" + exit 1 +fi + clear echo -e "${RED} "