From 6ed7ea8b5203ca8c7d3f870b560349af70f6cecb Mon Sep 17 00:00:00 2001 From: "NAKASHIMA, Makoto" Date: Wed, 2 Aug 2023 22:40:32 +0900 Subject: [PATCH] install-from-binstall-release.sh: Fix unbound variable error (#1241) fixes #1240 --- install-from-binstall-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-from-binstall-release.sh b/install-from-binstall-release.sh index 7dafe318..5ebf4f3d 100755 --- a/install-from-binstall-release.sh +++ b/install-from-binstall-release.sh @@ -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