bug: ensure rtx install
is always run
I added this conditional forgetting .tool-versions might exist but not be defined in yml
This commit is contained in:
parent
af19b40e29
commit
6e7a18f59b
3 changed files with 5 additions and 7 deletions
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
|
@ -39,9 +39,8 @@ const path = __importStar(__nccwpck_require__(17));
|
||||||
async function run() {
|
async function run() {
|
||||||
await setupRTX();
|
await setupRTX();
|
||||||
await exec.exec('rtx', ['--version']);
|
await exec.exec('rtx', ['--version']);
|
||||||
if (await setToolVersions()) {
|
await setToolVersions();
|
||||||
await exec.exec('rtx', ['install']);
|
await exec.exec('rtx', ['install']);
|
||||||
}
|
|
||||||
await setPaths();
|
await setPaths();
|
||||||
}
|
}
|
||||||
exports.run = run;
|
exports.run = run;
|
||||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -7,9 +7,8 @@ import * as path from 'path'
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
await setupRTX()
|
await setupRTX()
|
||||||
await exec.exec('rtx', ['--version'])
|
await exec.exec('rtx', ['--version'])
|
||||||
if (await setToolVersions()) {
|
await setToolVersions()
|
||||||
await exec.exec('rtx', ['install'])
|
await exec.exec('rtx', ['install'])
|
||||||
}
|
|
||||||
await setPaths()
|
await setPaths()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue