diff --git a/contrib/deploy.sh b/contrib/deploy.sh index 5994a4e8..e943be7a 100755 --- a/contrib/deploy.sh +++ b/contrib/deploy.sh @@ -99,8 +99,9 @@ npm whoami PATH="$HOME/.cargo/bin:$PATH" echo "Ensure that we are using Rustup" -if [[ ! "$(which rustc)" =~ .cargo/bin/rustc$ ]]; then - fail "Using $(which rustc) which does not seem to be from Rustup" +rustc_cmd=$(command -v rustc) +if [[ ! "$rustc_cmd" =~ .cargo/bin/rustc$ ]]; then + fail "Using $rustc_cmd which does not seem to be from Rustup" fi echo "Making sure the git repository is clean..."