Tesing
This commit is contained in:
parent
9f6fde840f
commit
13e1503515
@ -46,11 +46,11 @@ error_handler() {
|
|||||||
if [[ -n "$CT_ID" ]]; then
|
if [[ -n "$CT_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" &> /dev/null
|
||||||
pct destroy "$CTID"
|
pct destroy "$CTID" &> /dev/null
|
||||||
msg_ok "Removed this script"
|
msg_ok "Removed this Container"
|
||||||
else
|
else
|
||||||
msg_warn "Did not remove this script"
|
msg_warn "Did not remove this Container"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user