add an input argument to specify whether to run 'rustup self update'

This commit is contained in:
Yusuke Sasaki 2019-10-15 18:11:12 +09:00
parent 941154aed5
commit db898a40d0
3 changed files with 11 additions and 2 deletions

View file

@ -74,6 +74,10 @@ async function run() {
const opts = args.toolchain_args();
const rustup = await get_rustup(opts.name);
if (opts.self_update) {
await exec.exec(rustup, ['self', 'update']);
}
await exec.exec(rustup, ['toolchain', 'install', opts.name]);
if (opts.default) {