From ed96e2179290985f58185d9727b68280d27e0135 Mon Sep 17 00:00:00 2001 From: Lovepreet Singh Date: Thu, 18 Aug 2022 11:22:13 +0000 Subject: [PATCH] Fix spread operator for getCompressionMethod --- packages/cache/src/internal/tar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cache/src/internal/tar.ts b/packages/cache/src/internal/tar.ts index 3dee7fd0..cf0ccd0a 100644 --- a/packages/cache/src/internal/tar.ts +++ b/packages/cache/src/internal/tar.ts @@ -83,7 +83,7 @@ export async function listTar( compressionMethod: CompressionMethod ): Promise { const args = [ - getCompressionProgram(compressionMethod), + ...getCompressionProgram(compressionMethod), '-tf', archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '-P' @@ -99,7 +99,7 @@ export async function extractTar( const workingDirectory = getWorkingDirectory() await io.mkdirP(workingDirectory) const args = [ - getCompressionProgram(compressionMethod), + ...getCompressionProgram(compressionMethod), '-xf', archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '-P',