This commit is contained in:
CanbiZ 2025-05-08 14:44:04 +02:00
parent 89111b2e6b
commit 0c98ecdc9d
2 changed files with 2 additions and 2 deletions

View File

@ -346,8 +346,6 @@ cleanup() {
if [[ "$(dirs -p | wc -l)" -gt 1 ]]; then if [[ "$(dirs -p | wc -l)" -gt 1 ]]; then
popd >/dev/null || true popd >/dev/null || true
fi fi
post_update_to_api "done" "none"
[[ -n "${TEMP_DIR:-}" && -d "$TEMP_DIR" ]] && rm -rf "$TEMP_DIR"
} }
check_root() { check_root() {

View File

@ -47,6 +47,8 @@ function error_handler() {
get_valid_nextid get_valid_nextid
cleanup_vmid cleanup_vmid
cleanup cleanup
post_update_to_api "done" "none"
[[ -n "${TEMP_DIR:-}" && -d "$TEMP_DIR" ]] && rm -rf "$TEMP_DIR"
check_root check_root
pve_check pve_check
arch_check arch_check