1
0
Fork 0

send tar --version to debug log (#342)

pull/344/head
eric sciple 2020-02-13 09:54:56 -05:00 committed by GitHub
parent f90a2dcfd4
commit 84f1e31b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -202,14 +202,17 @@ export async function extractTar(
dest = await _createExtractFolder(dest) dest = await _createExtractFolder(dest)
// Determine whether GNU tar // Determine whether GNU tar
core.debug('Checking tar --version')
let versionOutput = '' let versionOutput = ''
await exec('tar --version', [], { await exec('tar --version', [], {
ignoreReturnCode: true, ignoreReturnCode: true,
silent: true,
listeners: { listeners: {
stdout: (data: Buffer) => (versionOutput += data.toString()), stdout: (data: Buffer) => (versionOutput += data.toString()),
stderr: (data: Buffer) => (versionOutput += data.toString()) stderr: (data: Buffer) => (versionOutput += data.toString())
} }
}) })
core.debug(versionOutput.trim())
const isGnuTar = versionOutput.toUpperCase().includes('GNU TAR') const isGnuTar = versionOutput.toUpperCase().includes('GNU TAR')
// Initialize args // Initialize args