mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 08:20:59 +00:00
Updating with 'uname -m'
This commit is contained in:
@@ -101,10 +101,24 @@ elif [[ "$OSTYPE" == darwin* ]]; then
|
||||
opsys=darwin
|
||||
fi
|
||||
|
||||
arch=amd64
|
||||
if command -v arch &> /dev/null; then
|
||||
arch=$(arch)
|
||||
fi
|
||||
# Supported values of 'arch': amd64, arm64, ppc64le, s390x
|
||||
case $(uname -m) in
|
||||
x86_64)
|
||||
arch=amd64
|
||||
;;
|
||||
arm64)
|
||||
arch=arm64
|
||||
;;
|
||||
ppc64le)
|
||||
arch=ppc64le
|
||||
;;
|
||||
s390x)
|
||||
arch=s390x
|
||||
;;
|
||||
*)
|
||||
arch=amd64
|
||||
;;
|
||||
esac
|
||||
|
||||
releases=$(curl -s $release_url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user