mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 11:40:04 +00:00
install-from-binstall-release: Add BINSTALL_VERSION (#1955)
This allow the users to choose different versions of cargo-binstall Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
4bf3685328
commit
ecbd4fdff1
2 changed files with 8 additions and 2 deletions
|
@ -2,9 +2,11 @@
|
|||
|
||||
set -euxo pipefail
|
||||
|
||||
BINSTALL_VERSION="${BINSTALL_VERSION:-latest}"
|
||||
|
||||
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/${BINSTALL_VERSION}/download/cargo-binstall-"
|
||||
|
||||
os="$(uname -s)"
|
||||
if [ "$os" == "Darwin" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue