mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 17:52:12 +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
|
pushd "$tmpDir" >& /dev/null
|
||||||
|
|
||||||
opsys=windows
|
opsys=windows
|
||||||
arch=amd64
|
|
||||||
if [[ "$OSTYPE" == linux* ]]; then
|
if [[ "$OSTYPE" == linux* ]]; then
|
||||||
opsys=linux
|
opsys=linux
|
||||||
elif [[ "$OSTYPE" == darwin* ]]; then
|
elif [[ "$OSTYPE" == darwin* ]]; then
|
||||||
opsys=darwin
|
opsys=darwin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
arch=amd64
|
||||||
|
if command -v arch &> /dev/null; then
|
||||||
|
arch=$(arch)
|
||||||
|
fi
|
||||||
|
|
||||||
releases=$(curl -s $release_url)
|
releases=$(curl -s $release_url)
|
||||||
|
|
||||||
if [[ $releases == *"API rate limit exceeded"* ]]; then
|
if [[ $releases == *"API rate limit exceeded"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user