diff options
| -rwxr-xr-x | library/compiler-builtins/ci/run-docker.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/compiler-builtins/ci/run-docker.sh b/library/compiler-builtins/ci/run-docker.sh index aff3564732f..50ae9dc83a1 100755 --- a/library/compiler-builtins/ci/run-docker.sh +++ b/library/compiler-builtins/ci/run-docker.sh @@ -41,10 +41,10 @@ run() { export RUST_COMPILER_RT_ROOT=./compiler-rt fi - if [ "$GITHUB_ACTIONS" = "true" ]; then + if [ "${GITHUB_ACTIONS:-}" = "true" ]; then # Enable Docker image caching on GHA - buildx="buildx" + build_cmd=("buildx" "build") build_args=( "--cache-from" "type=local,src=/tmp/.buildx-cache" "--cache-to" "type=local,dest=/tmp/.buildx-cache-new" @@ -53,7 +53,7 @@ run() { ) fi - docker "${buildx:-}" build \ + docker ${build_cmd[@]:-build} \ -t "builtins-$target" \ ${build_args[@]:-} \ "ci/docker/$target" |
