Skip to content

Commit

Permalink
Adding ARM support for Ibotta/sopstool#46
Browse files Browse the repository at this point in the history
  • Loading branch information
elementalvoid committed Mar 29, 2022
1 parent 856203e commit d58f17d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ set -euo pipefail
[[ -z ${ASDF_INSTALL_VERSION} ]] && echo "ASDF_INSTALL_VERSION is required" && exit 1
[[ -z ${ASDF_INSTALL_PATH} ]] && echo "ASDF_INSTALL_PATH is required" && exit 1
[[ ${ASDF_INSTALL_TYPE} != version ]] && echo "install type '${ASDF_INSTALL_TYPE}' is not supported." && exit 1
[[ $(uname -m) != x86_64 ]] && echo "Sorry i386 (32bit arch) is not supported." && exit 1

arch="$(uname -m)"
# Remap names to match GitHub releases.
[[ $arch = "aarch64" ]] && arch="arm64"
[[ $arch = "x86_64" ]] && arch="amd64"

supported_archs=("amd64" "arm64")
[[ ! " ${supported_archs[*]} " =~ ${arch} ]] && echo "Sorry, $arch is not supported." && exit 1

platform="$(uname)"
if [[ ! (${platform} == Linux || ${platform} == Darwin) ]]; then
Expand Down

0 comments on commit d58f17d

Please sign in to comment.