Skip to content

Commit 597f01d

Browse files
committed
Only check basename for file extension when downloading binaries
Fixes #3527 Signed-off-by: David Thompson <[email protected]>
1 parent 9538f7f commit 597f01d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/downloadUtil/downloadBinaries.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ async function extractTool(toolsFolder: string, platform: PlatformData, currentF
3535
toolLocation = path.join(toolsFolder, platform.cmdFileName);
3636
}
3737
console.log(`Extracting ${currentFile} to ${toolLocation}`);
38-
if (!currentFile.endsWith('.exe') && currentFile.includes('.')) {
38+
const fileBasename = path.basename(currentFile);
39+
if (!fileBasename.endsWith('.exe') && fileBasename.includes('.')) {
3940
await Archive.extract(currentFile, toolsFolder, platform.cmdFileName, platform.filePrefix);
4041
} else {
4142
fs.copyFileSync(currentFile, toolLocation);

0 commit comments

Comments
 (0)