mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Fix installation script on MacOS (#1263)
Fixed #1254 and also add CI for installation script and shellcheck. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
7f1ddd1dd7
commit
1c886d8897
3 changed files with 118 additions and 3 deletions
|
@ -27,9 +27,8 @@ fi
|
|||
|
||||
./cargo-binstall -y --force cargo-binstall
|
||||
|
||||
if ! [[ -v CARGO_HOME ]]; then
|
||||
CARGO_HOME=$HOME/.cargo
|
||||
fi
|
||||
CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
|
||||
|
||||
if ! [[ ":$PATH:" == *":$CARGO_HOME/bin:"* ]]; then
|
||||
echo
|
||||
printf "\033[0;31mYour path is missing %s, you might want to add it.\033[0m\n" "$CARGO_HOME/bin"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue