mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Install arch appropriate build if the 'arch' command is present
This commit is contained in:
@@ -95,13 +95,17 @@ trap cleanup EXIT ERR
|
||||
pushd "$tmpDir" >& /dev/null
|
||||
|
||||
opsys=windows
|
||||
arch=amd64
|
||||
if [[ "$OSTYPE" == linux* ]]; then
|
||||
opsys=linux
|
||||
elif [[ "$OSTYPE" == darwin* ]]; then
|
||||
opsys=darwin
|
||||
fi
|
||||
|
||||
arch=amd64
|
||||
if command -v arch &> /dev/null; then
|
||||
arch=$(arch)
|
||||
fi
|
||||
|
||||
releases=$(curl -s $release_url)
|
||||
|
||||
if [[ $releases == *"API rate limit exceeded"* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user