how to do a completely silent install of rvm

混江龙づ霸主 提交于 2019-12-11 06:58:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!