Changes to build.func

This commit is contained in:
Michel Roegl-Brunner 2025-05-16 08:55:56 +02:00
parent f3dfd62c16
commit b9af9155ea

View File

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