Skip to content

Commit

Permalink
detect machine arch (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mliang2 authored Aug 7, 2023
1 parent b1a9a10 commit e30adc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ install_pluto() {
local install_type=$1
local version=$2
local install_path=$3
local platform="$(uname | tr '[:upper:]' '[:lower:]')_amd64"
local arch=$(uname -m | sed 's/aarch64/arm64/g; s/x86_64/amd64/g')
local platform="$(uname | tr '[:upper:]' '[:lower:]')_${arch}"
local bin_install_path="$install_path/bin"
local binary_path="$bin_install_path/pluto"
local download_url=$(get_download_url $version $platform)
Expand Down

0 comments on commit e30adc6

Please sign in to comment.