1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-05-06 17:23:07 +00:00

Bugfix: Menu - Cancel (#4259)

This commit is contained in:
CanbiZ 2025-05-06 09:34:39 +02:00 committed by GitHub
parent 093a1aacf6
commit e7f0f09dee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -385,13 +385,6 @@ echo_default() {
echo -e " " echo -e " "
} }
# This function is called when the user decides to exit the script. It clears the screen and displays an exit message.
exit_script() {
clear
echo -e "\n${CROSS}${RD}User exited script${CL}\n"
exit
}
# This function allows the user to configure advanced settings for the script. # This function allows the user to configure advanced settings for the script.
advanced_settings() { advanced_settings() {
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Here is an instructional tip:" "To make a selection, use the Spacebar." 8 58 whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Here is an instructional tip:" "To make a selection, use the Spacebar." 8 58
@ -1442,11 +1435,11 @@ silent() {
} }
exit_script() { exit_script() {
clear
echo -e "\n${CROSS}${RD}User exited script${CL}\n"
exit_code=$? # Capture the exit status of the last executed command exit_code=$? # Capture the exit status of the last executed command
#200 exit codes indicate error in create_lxc.sh #200 exit codes indicate error in create_lxc.sh
#100 exit codes indicate error in install.func #100 exit codes indicate error in install.func
clear
echo -e "\n${CROSS}${RD}User exited script${CL}\n"
if [ $exit_code -ne 0 ]; then if [ $exit_code -ne 0 ]; then
case $exit_code in case $exit_code in