From 54ddc0d85634f690df19cf71163677c78a9b1a9e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Mar 2026 09:58:20 +0000 Subject: [PATCH] build.sh: fix empty array expansion under set -u ${arr[@]} with set -u throws 'unbound variable' when the array is empty. Use ${arr[@]+"${arr[@]}"} which only expands if the array is set. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH --- builder/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/build.sh b/builder/build.sh index 77c0717..48ce971 100755 --- a/builder/build.sh +++ b/builder/build.sh @@ -99,7 +99,7 @@ fi docker run --detach \ --name "$CONTAINER_NAME" \ --network hiy-net \ - "${ENV_FILE_ARG[@]}" \ + "${ENV_FILE_ARG[@]+"${ENV_FILE_ARG[@]}"}" \ --expose "$PORT" \ --label "hiy.app=${APP_ID}" \ --label "hiy.port=${PORT}" \