Skip to content

Commit

Permalink
Update install script for Darwin Arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
berndverst committed Nov 10, 2021
1 parent ae315b0 commit 6871fa3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ getSystemInfo() {
}

verifySupported() {
local supported=(darwin-amd64 linux-amd64 linux-arm linux-arm64)
local supported=(darwin-amd64 darwin-arm64 linux-amd64 linux-arm linux-arm64)
local current_osarch="${OS}-${ARCH}"

for osarch in "${supported[@]}"; do
Expand All @@ -50,14 +50,6 @@ verifySupported() {
fi
done

if [ "$current_osarch" == "darwin-arm64" ]; then
echo "The darwin_arm64 arch has no native binary, however you can use the amd64 version so long as you have rosetta installed"
echo "Use 'softwareupdate --install-rosetta' to install rosetta if you don't already have it"
ARCH="amd64"
return
fi


echo "No prebuilt binary for ${current_osarch}"
exit 1
}
Expand Down

0 comments on commit 6871fa3

Please sign in to comment.