mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
16 lines
360 B
Bash
Executable file
16 lines
360 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
unset CARGO_INSTALL_ROOT
|
|
|
|
export CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')
|
|
export PATH="$CARGO_HOME/bin:$PATH"
|
|
|
|
"./$1" binstall \
|
|
--force \
|
|
--min-tls-version "${2:-1.3}" \
|
|
--no-confirm \
|
|
cargo-binstall@0.20.1
|
|
# Test that the installed binaries can be run
|
|
cargo binstall --help >/dev/null
|