1
0
Fork 0

Fix spread operator for getCompressionMethod

pull/1152/head
Lovepreet Singh 2022-08-18 11:22:13 +00:00
parent 2ae31879b7
commit ed96e21792
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ export async function listTar(
compressionMethod: CompressionMethod
): Promise<void> {
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',