This commit is contained in:
Michel Roegl-Brunner 2025-05-15 16:25:44 +02:00
parent 9f6fde840f
commit 13e1503515

View File

@ -46,11 +46,11 @@ error_handler() {
if [[ -n "$CT_ID" ]]; then
read -p "Remove this Container? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
pct stop "$CTID"
pct destroy "$CTID"
msg_ok "Removed this script"
pct stop "$CTID" &> /dev/null
pct destroy "$CTID" &> /dev/null
msg_ok "Removed this Container"
else
msg_warn "Did not remove this script"
msg_warn "Did not remove this Container"
fi
fi
}