mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Get install script to work on raspberry pi
This commit is contained in:
parent
7032b06746
commit
31301c5ea3
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ if [ "$os" == "Darwin" ]; then
|
|||
unzip cargo-binstall-universal-apple-darwin.zip
|
||||
elif [ "$os" == "Linux" ]; then
|
||||
machine="$(uname -m)"
|
||||
# `uname -m` retuns 'armv7l' on raspberry pi, but 'armv7' works just fine
|
||||
if [ "$machine" == "armv7l" ]; then
|
||||
machine="armv7"
|
||||
fi
|
||||
target="${machine}-unknown-linux-musl"
|
||||
if [ "$machine" == "armv7" ]; then
|
||||
target="${target}eabihf"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue