问题
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
来源:https://stackoverflow.com/questions/44222770/how-to-do-a-completely-silent-install-of-rvm