From 2b5850d1e4f5691f2eb0c8d6e49947784a798d70 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 30 Jul 2023 16:17:31 +0900 Subject: [PATCH] Tweak script --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index ad588852..4802eb10 100755 --- a/main.sh +++ b/main.sh @@ -414,7 +414,7 @@ cargo_bin="${CARGO_HOME:-"${HOME}/.cargo"}/bin" # If $CARGO_HOME does not exist, or cargo installed outside of $CARGO_HOME/bin # is used ($CARGO_HOME/bin is most likely not included in the PATH), fallback to # /usr/local/bin or $HOME/.install-action/bin. -if [[ ! -d "${cargo_bin}" ]] || [[ "${host_os}" != "windows" ]] && [[ "$(type -P cargo || true)" != "${cargo_bin}/cargo${exe}" ]]; then +if [[ ! -d "${cargo_bin}" ]] || { [[ "${host_os}" != "windows" ]] && [[ "$(type -P cargo || true)" != "${cargo_bin}/cargo${exe}" ]]; }; then cargo_bin=/usr/local/bin fi