Skip to content

Commit 83cf3ce

Browse files
committed
Auto merge of #29170 - kini:curl-sh-disclaimer, r=steveklabnik
The paragraph here seemed confusing, so I reworded it. Also added another possible reason why `curl | sh` might be objectionable to users. r? @steveklabnik
2 parents ca998fc + 968d17a commit 83cf3ce

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/doc/trpl/installing-rust.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,15 @@ us an uninstall option.
5151
## That disclaimer we promised
5252

5353
Some people, and somewhat rightfully so, get very upset when we tell them to
54-
`curl | sh`. Basically, when they do this, they are trusting that the good
55-
people who maintain Rust aren't going to hack their computer and do bad things.
56-
That's a good instinct! If you're one of those people, please check out the
57-
documentation on [building Rust from Source][from-source], or [the official
58-
binary downloads][install-page].
54+
`curl | sh`. Their concern is that `curl | sh` implicitly requires you to trust
55+
that the good people who maintain Rust aren't going to hack your computer and
56+
do bad things — and even having accepted that, there is still the possibility
57+
that the Rust website has been hacked and the `rustup` script compromised.
58+
59+
Being wary of such possibilities is a good instinct! If you're uncomfortable
60+
using `curl | sh` for reasons like these, please check out the documentation on
61+
[building Rust from Source][from-source], or
62+
[the official binary downloads][install-page].
5963

6064
[from-source]: https://github.com/rust-lang/rust#building-from-source
6165

0 commit comments

Comments
 (0)