Skip to content

Commit

Permalink
fix: Merge pull request #1 from yhakbar/main
Browse files Browse the repository at this point in the history
Fixing `get_arch` for Apple Silicon
  • Loading branch information
chessmango committed Mar 28, 2023
2 parents 5cbe18b + 69db107 commit 1e6fa80
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/utils.bash
Expand Up @@ -70,7 +70,19 @@ install_version() {
}

get_arch() {
uname -m
local arch
arch=$(uname -m)
case $arch in
"x86_64")
echo "x86_64"
;;
"arm64")
echo "aarch64"
;;
*)
exit 1
;;
esac
}

get_platform() {
Expand Down

0 comments on commit 1e6fa80

Please sign in to comment.