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:
Jeff Dickey 2023-03-28 18:23:06 -05:00
parent af19b40e29
commit 6e7a18f59b
No known key found for this signature in database
3 changed files with 5 additions and 7 deletions

5
dist/index.js generated vendored
View file

@ -39,9 +39,8 @@ const path = __importStar(__nccwpck_require__(17));
async function run() {
await setupRTX();
await exec.exec('rtx', ['--version']);
if (await setToolVersions()) {
await exec.exec('rtx', ['install']);
}
await setToolVersions();
await exec.exec('rtx', ['install']);
await setPaths();
}
exports.run = run;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -7,9 +7,8 @@ import * as path from 'path'
async function run(): Promise<void> {
await setupRTX()
await exec.exec('rtx', ['--version'])
if (await setToolVersions()) {
await exec.exec('rtx', ['install'])
}
await setToolVersions()
await exec.exec('rtx', ['install'])
await setPaths()
}