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