From 5b63d8190cf1fe41b053083faf067324bfb1bf9c Mon Sep 17 00:00:00 2001 From: Eric Platon Date: Wed, 6 Aug 2025 10:50:02 +0900 Subject: [PATCH] Fix EXIT trap function call The function call is valid, but the script uses `set -u`, so function calls without "optional" arguments trigger errors. --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0ea9916a8..a2bcc25d6 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -25,7 +25,7 @@ cleanup () { rmdir --ignore-fail-on-non-empty $TEMP_ROOT_DIR || true fi } -trap 'status=$?; cleanup; exit $status' EXIT +trap 'status=$?; cleanup ""; exit $status' EXIT trap 'trap - HUP; cleanup SIGHUP; kill -HUP $$' HUP trap 'trap - INT; cleanup SIGINT; kill -INT $$' INT trap 'trap - TERM; cleanup SIGTERM; kill -TERM $$' TERM