From 79770cce7f27047e54394db5c009cd03b111151e Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sun, 16 Oct 2022 16:56:51 +0100 Subject: [PATCH] Cope with CARGO_HOME existing, but not rustup --- bin/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 5fc3983..f0d1b79 100755 --- a/bin/compile +++ b/bin/compile @@ -101,7 +101,7 @@ mkdir -p "$CACHE_DIR" cd "$CACHE_DIR" # Make sure we have an appropriate Rust toolchain installed. -if [ -d "$CARGO_HOME" ]; then +if which rustup; then echo "-----> Checking for new releases of Rust $VERSION channel" # It's possible that $VERSION has changed, or the `stable` channel has updated. rustup self update