Skip to content

Commit

Permalink
fix: remove indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
smdex committed Jul 21, 2023
1 parent e91af52 commit 9855f2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ get_platform() {

get_arch() {
local -r machine="$(uname -m)"
local -r arch_override="ASDF_MUTAGEN_ARCH_OVERRIDE"

if [[ -n ${!arch_override} ]]; then
echo "${!arch_override}"
if [[ -n ${ASDF_MUTAGEN_ARCH_OVERRIDE} ]]; then
echo ${ASDF_MUTAGEN_ARCH_OVERRIDE}
elif [[ ${machine} == "arm64" ]] || [[ ${machine} == "aarch64" ]]; then
echo "arm64"
elif [[ ${machine} == *"arm"* ]] || [[ ${machine} == *"aarch"* ]]; then
Expand Down

0 comments on commit 9855f2f

Please sign in to comment.