This commit is contained in:
CanbiZ 2025-05-15 16:10:47 +02:00
commit f2dd5b140f

View File

@ -43,6 +43,7 @@ error_handler() {
post_update_to_api "failed" "${command}" post_update_to_api "failed" "${command}"
echo -e "\n$error_message\n" echo -e "\n$error_message\n"
if [[ -n "$CTD_ID" ]]; then
read -p "Remove this Container? <y/N> " prompt read -p "Remove this Container? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
pct stop "$CTID" pct stop "$CTID"
@ -51,6 +52,7 @@ error_handler() {
else else
msg_warn "Did not remove this script" msg_warn "Did not remove this script"
fi fi
fi
} }
# Check if the shell is using bash # Check if the shell is using bash
shell_check() { shell_check() {