From 84f1e31b691b33a977191b9315ea329c3739eba2 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Thu, 13 Feb 2020 09:54:56 -0500 Subject: [PATCH] send tar --version to debug log (#342) --- packages/tool-cache/src/tool-cache.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/tool-cache/src/tool-cache.ts b/packages/tool-cache/src/tool-cache.ts index 6e8c6c2a..7cb581ac 100644 --- a/packages/tool-cache/src/tool-cache.ts +++ b/packages/tool-cache/src/tool-cache.ts @@ -202,14 +202,17 @@ export async function extractTar( dest = await _createExtractFolder(dest) // Determine whether GNU tar + core.debug('Checking tar --version') let versionOutput = '' await exec('tar --version', [], { ignoreReturnCode: true, + silent: true, listeners: { stdout: (data: Buffer) => (versionOutput += data.toString()), stderr: (data: Buffer) => (versionOutput += data.toString()) } }) + core.debug(versionOutput.trim()) const isGnuTar = versionOutput.toUpperCase().includes('GNU TAR') // Initialize args