Missing rustup invocation

This commit is contained in:
svartalf 2019-09-14 11:57:12 +03:00
parent 7d6ef4b233
commit 64f28e754d
2 changed files with 14 additions and 14 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -92,19 +92,19 @@ async function run() {
const rustup = await get_rustup(opts.name, opts.target);
// await do_exec(rustup, ['toolchain', 'install', opts.name]);
//
// if (opts.default) {
// await do_exec(rustup, ['default', opts.name]);
// }
//
// if (opts.override) {
// await do_exec(rustup, ['override', 'set', opts.name]);
// }
//
// if (opts.target) {
// await do_exec(rustup, ['target', 'add', '--toolchain', opts.name, opts.target]);
// }
await do_exec(rustup, ['toolchain', 'install', opts.name]);
if (opts.default) {
await do_exec(rustup, ['default', opts.name]);
}
if (opts.override) {
await do_exec(rustup, ['override', 'set', opts.name]);
}
if (opts.target) {
await do_exec(rustup, ['target', 'add', '--toolchain', opts.name, opts.target]);
}
}
run();