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:
@@ -166,7 +166,7 @@ build_image() {
|
||||
|
||||
info "Building ${image_name}..."
|
||||
if ! "$RUNTIME" build \
|
||||
"${build_args[@]}" \
|
||||
${build_args[@]+"${build_args[@]}"} \
|
||||
-f "$containerfile" \
|
||||
-t "$image_name" \
|
||||
"$REPO_ROOT" 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user