如何完全静默安装 rvm

how to do a completely silent install of rvm

如何静默安装 rvm,抑制 stdout 和 stderr。

我试过了

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


bash: --: invalid option

您可以使用文件描述符

将输出转储到 /dev/null

首先重定向 STDOUT(文件描述符 1),然后重定向 STDERR(文件描述符 2)

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