Skip to content

Commit 0ccc1bf

Browse files
authored
Merge pull request #629 from tgross35/fix-script
Fix unset variables in the build script
2 parents 202ad9a + e1b7d8f commit 0ccc1bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/run-docker.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ run() {
4141
export RUST_COMPILER_RT_ROOT=./compiler-rt
4242
fi
4343

44-
if [ "$GITHUB_ACTIONS" = "true" ]; then
44+
if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
4545
# Enable Docker image caching on GHA
4646

47-
buildx="buildx"
47+
build_cmd=("buildx" "build")
4848
build_args=(
4949
"--cache-from" "type=local,src=/tmp/.buildx-cache"
5050
"--cache-to" "type=local,dest=/tmp/.buildx-cache-new"
@@ -53,7 +53,7 @@ run() {
5353
)
5454
fi
5555

56-
docker "${buildx:-}" build \
56+
docker ${build_cmd[@]:-build} \
5757
-t "builtins-$target" \
5858
${build_args[@]:-} \
5959
"ci/docker/$target"

0 commit comments

Comments
 (0)