Rust's simple download script

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 9 16:42:24 PST 2015


On 11/09/2015 06:09 PM, H. S. Teoh via Digitalmars-d wrote:
> On Mon, Nov 09, 2015 at 06:07:57PM -0500, Andrei Alexandrescu via Digitalmars-d wrote:
>> Rust has a nice way to download at
>> https://www.rust-lang.org/downloads.html for Posix:
>>
>> $ curl -sSf https://static.rust-lang.org/rustup.sh | sh -s --
>>
>> The method is simple and transparent. An optional --channel=beta or
>> --channel=nightly parameter chooses between a stable release
>> (default), beta, or nightly build.
>>
>> Should we do something similar?
> [...]
>
> Probably...
>
> ... though I have to admit that the idea of running a shell script
> downloaded from some random remote server (and that, as root, as
> otherwise it probably wouldn't work) scares me. A lot.

Piping through less would be a natural first thing to do. Also, let's 
not forget that installing from the same site carries the same risks. -- 
Andrei



More information about the Digitalmars-d mailing list