Skip to content

Commit

Permalink
suffix download tmp file with version. delete tmp file after extraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjur committed Feb 13, 2024
1 parent 9624fcc commit 149c29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitleaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function Install(version) {
core.error(`Unsupported archive format: ${gitleaksReleaseURL}`);
}
if (existsSync(downloadPath)) {
await unlinkSync(downloadPath);
unlinkSync(downloadPath);
}
try {
await cache.saveCache([pathToInstall], cacheKey);
Expand Down

0 comments on commit 149c29e

Please sign in to comment.