Skip to content

Commit f2335a6

Browse files
committed
Fix empty BASHBREW_ARCH edge case in "bashbrew-buildkit-env-setup.sh"
Follow-up to docker-library#15780 (oops)
1 parent 6f318cb commit f2335a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.bin/bashbrew-buildkit-env-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ _bashbrew_buildkit_env_setup() {
5353

5454
case "${BASHBREW_ARCH:-}" in
5555
windows-amd64) ;; # https://github.com/microsoft/Windows-Containers/issues/34
56+
'') ;; # if BASHBREW_ARCH isn't set explicitly, we shouldn't do more here
5657
*)
5758
BASHBREW_BUILDKIT_IMAGE="$(grep <<<"$externalPins" -m1 '^tianon/buildkit:')"
5859
BASHBREW_BUILDKIT_IMAGE="$(_resolve_external_pins "$BASHBREW_BUILDKIT_IMAGE")"

0 commit comments

Comments
 (0)