File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ advanced_settings() {
477477 echo -e "${CONTAINERID}${BOLD}${DGN}Container ID: ${BGN}$CT_ID${CL}"
478478 fi
479479 else
480- exit
480+ exit_script
481481 fi
482482
483483 if CT_NAME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Hostname" 8 58 "$NSAPP" --title "HOSTNAME" 3>&1 1>&2 2>&3); then
@@ -1442,6 +1442,8 @@ silent() {
14421442}
14431443
14441444exit_script() {
1445+ clear
1446+ echo -e "\n${CROSS}${RD}User exited script${CL}\n"
14451447 exit_code=$? # Capture the exit status of the last executed command
14461448 #200 exit codes indicate error in create_lxc.sh
14471449 #100 exit codes indicate error in install.func
@@ -1463,6 +1465,7 @@ exit_script() {
14631465 *) post_update_to_api "failed" "Unknown error, exit code: $exit_code in create_lxc.sh" ;;
14641466 esac
14651467 fi
1468+ exit
14661469}
14671470
14681471trap 'exit_script' EXIT
You can’t perform that action at this time.
0 commit comments