Skip to content

Commit 17c3163

Browse files
committed
Update build.func
1 parent f0a96b9 commit 17c3163

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

misc/build.func

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

14441444
exit_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

14681471
trap 'exit_script' EXIT

0 commit comments

Comments
 (0)