We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25f476d + 71fb2df commit de12a26Copy full SHA for de12a26
rustup-init.sh
@@ -15,7 +15,9 @@
15
16
set -u
17
18
-RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup/dist"
+if [ -z "$RUSTUP_UPDATE_ROOT" ]; then
19
+ RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
20
+fi
21
22
#XXX: If you change anything here, please make the same changes in setup_mode.rs
23
usage() {
@@ -60,7 +62,7 @@ main() {
60
62
;;
61
63
esac
64
- local _url="$RUSTUP_UPDATE_ROOT/$_arch/rustup-init$_ext"
65
+ local _url="$RUSTUP_UPDATE_ROOT/dist/$_arch/rustup-init$_ext"
66
67
local _dir="$(mktemp -d 2>/dev/null || ensure mktemp -d -t rustup)"
68
local _file="$_dir/rustup-init$_ext"
0 commit comments