Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ fail() {
}

get_cpu() {
local machine_hardware_name
machine_hardware_name=${ASDF_STACKITCLI_OVERWRITE_ARCH:-"$(uname -m)"}

case "$machine_hardware_name" in
'x86_64') local cpu_type="amd64" ;;
'powerpc64le' | 'ppc64le') local cpu_type="ppc64le" ;;
'aarch64') local cpu_type="arm64" ;;
'armv7l') local cpu_type="arm" ;;
*) local cpu_type="$machine_hardware_name" ;;
esac

echo "$cpu_type"
local machine_hardware_name
machine_hardware_name=${ASDF_STACKITCLI_OVERWRITE_ARCH:-"$(uname -m)"}

case "$machine_hardware_name" in
'x86_64') local cpu_type="amd64" ;;
'powerpc64le' | 'ppc64le') local cpu_type="ppc64le" ;;
'aarch64') local cpu_type="arm64" ;;
'armv7l') local cpu_type="arm" ;;
*) local cpu_type="$machine_hardware_name" ;;
esac

echo "$cpu_type"
}

get_arch() {
uname | tr '[:upper:]' '[:lower:]'
uname | tr '[:upper:]' '[:lower:]'
}

install_version() {
Expand Down
Loading