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',