We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f32ce2 commit 695c9e5Copy full SHA for 695c9e5
ci/run-docker.sh
@@ -48,14 +48,16 @@ run() {
48
build_args=(
49
"--cache-from" "type=local,src=/tmp/.buildx-cache"
50
"--cache-to" "type=local,dest=/tmp/.buildx-cache-new"
51
- "${build_args[@]:-}"
+ # This is the beautiful bash syntax for expanding an array but neither
52
+ # raising an error nor returning an empty string if the array is empty.
53
+ "${build_args[@]:+"${build_args[@]}"}"
54
"--load"
55
)
56
fi
57
58
docker "${build_cmd[@]:-build}" \
59
-t "builtins-$target" \
- ${build_args[@]:-} \
60
+ "${build_args[@]:-}" \
61
"ci/docker/$target"
62
docker run \
63
--rm \
0 commit comments