Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created March 6, 2019 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcrichton/5a3b52488d9fc62a5fb32ab36e8ff320 to your computer and use it in GitHub Desktop.
Save alexcrichton/5a3b52488d9fc62a5fb32ab36e8ff320 to your computer and use it in GitHub Desktop.
diff --git a/rustup-init.sh b/rustup-init.sh
index 3815d2f1..8411bfef 100755
--- a/rustup-init.sh
+++ b/rustup-init.sh
@@ -13,12 +13,12 @@
# install rustup. It just does platform detection, downloads the installer
# and runs it.
-set -u
-
if [ -z "$RUSTUP_UPDATE_ROOT" ]; then
RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
fi
+set -u
+
#XXX: If you change anything here, please make the same changes in setup_mode.rs
usage() {
cat 1>&2 <<EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment