Skip to content

Commit

Permalink
fix: typo in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly authored Jan 30, 2024
1 parent 024abab commit 116b365
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ async function main() {

const targetFile = platform === 'win32' ? 'bicep.exe' : 'bicep';
const toolPath = await tc.cacheFile(downloadFile, targetFile, 'bicep', version || 'latest', arch);
const bicePath = path.join(toolPath, targetFile);
const bicepPath = path.join(toolPath, targetFile);

// make bicep executable
await fs.promises.chmod(bicePath, 0o755);
await fs.promises.chmod(bicepPath, 0o755);

// add bicep to PATH
core.addPath(toolPath);

// print bicep version info
await exec.exec('bicep', ['--version']);

core.info(`Installed bicep to ${bicePath}`);
core.info(`Installed bicep to ${bicepPath}`);
} catch (e) {
issueCommand('remove-matcher', {owner: 'bicep'}, '');
core.setFailed(`${e}`);
}
}

main();
main();

0 comments on commit 116b365

Please sign in to comment.