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:
Jiahao XU 2023-08-09 19:37:26 +10:00 committed by GitHub
parent 7f1ddd1dd7
commit 1c886d8897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 118 additions and 3 deletions

View file

@ -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"