Skip to content

Commit 474062d

Browse files
committed
Rollup merge of rust-lang#23332 - jakub-:rustup-curl-silent-flag, r=brson
curl's progress meter would otherwise interfere with sudo's password prompt. In addition, add the -f flag to make sure 4xx status codes are treated as errors. r? @brson
2 parents f8b6e28 + b3c58cf commit 474062d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/installing-rust.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Linux or a Mac, all you need to do is this (note that you don't need to type
66
in the `$`s, they just indicate the start of each command):
77

88
```bash
9-
$ curl -L https://static.rust-lang.org/rustup.sh | sudo sh
9+
$ curl -sf -L https://static.rust-lang.org/rustup.sh | sudo sh
1010
```
1111

1212
If you're concerned about the [potential insecurity](http://curlpipesh.tumblr.com/) of using `curl | sudo sh`,
1313
please keep reading and see our disclaimer below. And feel free to use a two-step version of the installation and examine our installation script:
1414

1515
```bash
16-
$ curl -L https://static.rust-lang.org/rustup.sh -O
16+
$ curl -f -L https://static.rust-lang.org/rustup.sh -O
1717
$ sudo sh rustup.sh
1818
```
1919

0 commit comments

Comments
 (0)