Rustをcurlでユーザーの入力なしにインストールしたい
#Rust #エラー対処
やりたいこと
Rustをhttps://sh.rustup.rsでインストールする時に、ユーザーがyesのために"y''入力しないといけない。
だが、シェルスクリプトなどで実行したい時に以下のようなエラーが出る。それを解決したい。
code:エラーメッセージ
rustup: Unable to run interactively. Run with -y to accept defaults, --help for additional options
解決方法
$ curl https://sh.rustup.rs -sSf | sh -s -- -y
参考: --no-prompt option to rustup-init fails · Issue #1031 · rust-lang/rustup.rs