File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 22
22
# XXX: If you change anything here, please make the same changes in setup_mode.rs
23
23
usage () {
24
24
cat 1>&2 << EOF
25
- rustup-init 1.0 .0 (408ed84 2017-02-11 )
25
+ rustup-init 1.16 .0 (beab5ac2b 2018-12-06 )
26
26
The installer for rustup
27
27
28
28
USAGE:
@@ -111,8 +111,6 @@ main() {
111
111
exit 1
112
112
fi
113
113
114
-
115
-
116
114
if [ " $need_tty " = " yes" ]; then
117
115
# The installer is going to want to ask for confirmation by
118
116
# reading stdin. This script was piped into `sh` though and
@@ -175,7 +173,7 @@ get_endianness() {
175
173
}
176
174
177
175
get_architecture () {
178
- local _ostype _cputype
176
+ local _ostype _cputype _bitness _arch
179
177
_ostype=" $( uname -s) "
180
178
_cputype=" $( uname -m) "
181
179
@@ -283,7 +281,6 @@ get_architecture() {
283
281
# only n64 ABI is supported for now
284
282
_ostype=" ${_ostype} abi64"
285
283
fi
286
-
287
284
_cputype=" $( get_endianness " $_cputype " " " ' el' ) "
288
285
;;
289
286
@@ -378,6 +375,7 @@ ignore() {
378
375
# This wraps curl or wget. Try curl first, if not installed,
379
376
# use wget instead.
380
377
downloader () {
378
+ local _dld
381
379
if check_cmd curl; then
382
380
_dld=curl
383
381
elif check_cmd wget; then
You can’t perform that action at this time.
0 commit comments