From e65593751cb4e1413da46fe1a133ddbd7c8e60ce Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:32:15 +0100 Subject: [PATCH] noCancel --- misc/build.func | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/build.func b/misc/build.func index 415d93e8..eb35739d 100644 --- a/misc/build.func +++ b/misc/build.func @@ -588,16 +588,16 @@ install_script() { timezone=$(cat /etc/timezone) header_info while true; do - CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --nocancel --title "SETTINGS" --menu "Choose an option:" \ + CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SETTINGS" --menu "Choose an option:" \ 12 50 4 \ "1" "Default Settings" \ "2" "Default Settings (with verbose)" \ "3" "Advanced Settings" \ - "4" "Exit" 3>&1 1>&2 2>&3) + "4" "Exit" --nocancel 3>&1 1>&2 2>&3) if [ $? -ne 0 ]; then echo -e "${CROSS}${RD} Menu canceled. Exiting.${CL}" - exit 1 + exit 0 fi case $CHOICE in