Skip to content

Commit 149c29e

Browse files
committed
suffix download tmp file with version. delete tmp file after extraction.
1 parent 9624fcc commit 149c29e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/gitleaks.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function Install(version) {
6262
core.error(`Unsupported archive format: ${gitleaksReleaseURL}`);
6363
}
6464
if (existsSync(downloadPath)) {
65-
await unlinkSync(downloadPath);
65+
unlinkSync(downloadPath);
6666
}
6767
try {
6868
await cache.saveCache([pathToInstall], cacheKey);

0 commit comments

Comments
 (0)