install-from-binstall-release.sh: Fix unbound variable error (#1241)

fixes #1240
This commit is contained in:
NAKASHIMA, Makoto 2023-08-02 22:40:32 +09:00 committed by GitHub
parent 7c2ddd9a0c
commit 6ed7ea8b52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ fi
./cargo-binstall -y --force cargo-binstall
if ! [[ $CARGO_HOME ]]; then
if ! [[ -v CARGO_HOME ]]; then
CARGO_HOME=$HOME/.cargo
fi
if ! [[ ":$PATH:" == *":$CARGO_HOME/bin:"* ]]; then