diff --git a/install-from-binstall-release.sh b/install-from-binstall-release.sh index d87b29eb..fa4f8222 100755 --- a/install-from-binstall-release.sh +++ b/install-from-binstall-release.sh @@ -11,7 +11,7 @@ base_url="https://github.com/cargo-bins/cargo-binstall/releases/${BINSTALL_VERSI os="$(uname -s)" if [ "$os" == "Darwin" ]; then url="${base_url}universal-apple-darwin.zip" - curl -LO --proto '=https' --tlsv1.2 -sSf "$url" + curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -LO --proto '=https' --tlsv1.2 -sSf "$url" unzip cargo-binstall-universal-apple-darwin.zip elif [ "$os" == "Linux" ]; then machine="$(uname -m)" @@ -24,12 +24,12 @@ elif [ "$os" == "Linux" ]; then fi url="${base_url}${target}.tgz" - curl -L --proto '=https' --tlsv1.2 -sSf "$url" | tar -xvzf - + curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -L --proto '=https' --tlsv1.2 -sSf "$url" | tar -xvzf - elif [ "${OS-}" = "Windows_NT" ]; then machine="$(uname -m)" target="${machine}-pc-windows-msvc" url="${base_url}${target}.zip" - curl -LO --proto '=https' --tlsv1.2 -sSf "$url" + curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -LO --proto '=https' --tlsv1.2 -sSf "$url" unzip "cargo-binstall-${target}.zip" else echo "Unsupported OS ${os}"