how to do a completely silent install of rvm

2019-07-29 08:09发布

问题:

How to install rvm silently, suppressing stdout and stderr.

I tried

\curl -s -L https://get.rvm.io | bash -s --quiet-curl


bash: --: invalid option

回答1:

you can dump the output to /dev/null using file descriptors

STDOUT (file descriptor 1) is redirected first, followed by STDERR (file descriptor 2)

\curl -s -L https://get.rvm.io | bash -s > /dev/null 2>&1