Skip to content

Commit

Permalink
FIX: Ensure right arch is used for versions > 0.2.1
Browse files Browse the repository at this point in the history
All subsequent versions from 0.3.0 use amd64 instead of x86_64. So need
to ensure the correct ARCH is set.
  • Loading branch information
yasn77 committed Sep 14, 2023
1 parent 71f6a6e commit 8c2e1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ download_release() {
ALTARCH=$(uname -m)
ALTOS=$(uname -s)

# Okta has changed from x86_64 to amd64 for Darwin starting from 0.3.0 (why? something I don't know?) so we need to adapt
if [[ "${ARCH}" == "x86_64" && "${ASDF_INSTALL_VERSION}" == "0.3.0" ]]; then
# Okta has changed from x86_64 to amd64 from 0.3.0 (why? something I don't know?) so we need to adapt
if [[ "${ARCH}" == "x86_64" && ! "${ASDF_INSTALL_VERSION}" =~ ^0\.[012]\.* ]]; then
ALTARCH=amd64
fi
if [[ "${OS}" == "Linux" ]]; then
Expand Down

0 comments on commit 8c2e1c3

Please sign in to comment.