fix: e2e.sh unbound variable on empty build_args

Use ${arr[@]+"${arr[@]}"} pattern for nounset-safe empty array expansion.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Flo
2026-03-31 18:08:21 +02:00
parent dd6257985b
commit 1795661975

View File

@@ -166,7 +166,7 @@ build_image() {
info "Building ${image_name}..." info "Building ${image_name}..."
if ! "$RUNTIME" build \ if ! "$RUNTIME" build \
"${build_args[@]}" \ ${build_args[@]+"${build_args[@]}"} \
-f "$containerfile" \ -f "$containerfile" \
-t "$image_name" \ -t "$image_name" \
"$REPO_ROOT" 2>&1; then "$REPO_ROOT" 2>&1; then