mirror of https://github.com/docker/buildx.git
hack/util: take other arches into account on Darwin
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
aa8ab9fcca
commit
20f8f67928
|
@ -22,9 +22,12 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CLI_PLATFORM" ]; then
|
if [ -z "$CLI_PLATFORM" ]; then
|
||||||
rawos=$(uname -s)
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
if [ "$rawos" = "Darwin" ]; then
|
arch="$(uname -m)"
|
||||||
CLI_PLATFORM="darwin/amd64"
|
if [ "$arch" = "x86_64" ]; then
|
||||||
|
arch="amd64"
|
||||||
|
fi
|
||||||
|
CLI_PLATFORM="darwin/$arch"
|
||||||
elif uname -s | grep MINGW > /dev/null 2>&1 ; then
|
elif uname -s | grep MINGW > /dev/null 2>&1 ; then
|
||||||
CLI_PLATFORM="windows/amd64"
|
CLI_PLATFORM="windows/amd64"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue