diff --git a/misc/build.func b/misc/build.func index fd9f8dc..7086827 100644 --- a/misc/build.func +++ b/misc/build.func @@ -46,8 +46,8 @@ error_handler() { if [[ -n "$CT_ID" ]]; then read -p "Remove this Container? " 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"