Skip to content

Commit

Permalink
append .exe to cached tool name on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode committed Nov 7, 2023
1 parent f753891 commit ecbabe4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/attachReleaseAssets/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/downloadSyft/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/runSyftAction/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/github/SyftGithubAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export async function downloadSyft(): Promise<string> {
* Gets the Syft command to run via exec
*/
export async function getSyftCommand(): Promise<string> {
const name = SYFT_BINARY_NAME;
const name = SYFT_BINARY_NAME + (process.platform == "win32" ? ".exe" : "");
const version = SYFT_VERSION;

const sourceSyft = await downloadSyftFromZip(version);
Expand Down

0 comments on commit ecbabe4

Please sign in to comment.