mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 22:56:37 +00:00
Create self-install.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
5d4ac2e786
commit
2afabb9fd9
1 changed files with 14 additions and 0 deletions
14
e2e-tests/self-install.sh
Normal file
14
e2e-tests/self-install.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
unset CARGO_INSTALL_ROOT
|
||||||
|
|
||||||
|
CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')
|
||||||
|
export CARGO_HOME
|
||||||
|
export PATH="$CARGO_HOME/bin:$PATH"
|
||||||
|
|
||||||
|
"./$1" --self-install
|
||||||
|
|
||||||
|
cargo binstall --help
|
||||||
|
cargo install --list
|
Loading…
Add table
Add a link
Reference in a new issue