mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Don't show warning if $CARGO_HOME/bin is in $PATH (#1239)
This commit is contained in:
parent
855ca88477
commit
7c2ddd9a0c
1 changed files with 5 additions and 2 deletions
|
@ -27,8 +27,11 @@ fi
|
|||
|
||||
./cargo-binstall -y --force cargo-binstall
|
||||
|
||||
if ! [[ ":$PATH:" == *":$HOME/.cargo/bin:"* ]]; then
|
||||
if ! [[ $CARGO_HOME ]]; then
|
||||
CARGO_HOME=$HOME/.cargo
|
||||
fi
|
||||
if ! [[ ":$PATH:" == *":$CARGO_HOME/bin:"* ]]; then
|
||||
echo
|
||||
printf "\033[0;31mYour path is missing ~/.cargo/bin, you might want to add it.\033[0m\n"
|
||||
printf "\033[0;31mYour path is missing %s, you might want to add it.\033[0m\n" "$CARGO_HOME/bin"
|
||||
echo
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue