mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-06 04:00:02 +00:00
Use uname -s
for install script compatibility with outdated macOS GNU utils (#1123)
This commit is contained in:
parent
22b3419fce
commit
f0a62754ad
1 changed files with 2 additions and 2 deletions
|
@ -6,12 +6,12 @@ cd "$(mktemp -d)"
|
||||||
|
|
||||||
base_url="https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-"
|
base_url="https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-"
|
||||||
|
|
||||||
os="$(uname -o)"
|
os="$(uname -s)"
|
||||||
if [ "$os" == "Darwin" ]; then
|
if [ "$os" == "Darwin" ]; then
|
||||||
url="${base_url}universal-apple-darwin.zip"
|
url="${base_url}universal-apple-darwin.zip"
|
||||||
curl -LO --proto '=https' --tlsv1.2 -sSf "$url"
|
curl -LO --proto '=https' --tlsv1.2 -sSf "$url"
|
||||||
unzip cargo-binstall-universal-apple-darwin.zip
|
unzip cargo-binstall-universal-apple-darwin.zip
|
||||||
elif [ "$os" == "GNU/Linux" ]; then
|
elif [ "$os" == "Linux" ]; then
|
||||||
machine="$(uname -m)"
|
machine="$(uname -m)"
|
||||||
target="${machine}-unknown-linux-musl"
|
target="${machine}-unknown-linux-musl"
|
||||||
if [ "$machine" == "armv7" ]; then
|
if [ "$machine" == "armv7" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue