Fix gnutar check on windows
This commit is contained in:
1 parent
43d72f5923
commit
802b275be8
2 files changed
+3
-2
No files matched your search
@@ -117,8 +117,9 @@ export function getCacheFileName(compressionMethod: CompressionMethod): string {
|
||||
}
|
||||
|
||||
export async function isGnuTarInstalled(): Promise<boolean> {
|
||||
const gnuTar = `${process.env['windir']}\\Program Files\\Git\\usr\\bin\\tar.exe`
|
||||
const versionOutput = await getVersion('tar')
|
||||
return versionOutput.toLowerCase().includes('gnu tar')
|
||||
return versionOutput.toLowerCase().includes('gnu tar') || fs.existsSync(gnuTar)
|
||||
}
|
||||
|
||||
export function assertDefined<T>(name: string, value?: T): T {
|
||||
|
||||
Reference in new issue
Block a user