Fix gnutar check on windows

This commit is contained in:
Sampark Sharma authored and GitHub committed 2022-11-07 13:43:54 +00:00
1 parent 43d72f5923
commit 802b275be8
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ async function getTarPath(
case 'win32': {
const systemTar = `${process.env['windir']}\\System32\\tar.exe`
const gnuTar = `${process.env['windir']}\\Program Files\\Git\\usr\\bin\\tar.exe`
if (compressionMethod !== CompressionMethod.Gzip && existsSync(gnuTar)) {
if (existsSync(gnuTar)) {
args.push('--force-local')
return gnuTar
} else if (compressionMethod !== CompressionMethod.Gzip) {