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 compressionMethod: CompressionMethod
): Promise<void> { ): Promise<void> {
const args = [ const args = [
getCompressionProgram(compressionMethod), ...getCompressionProgram(compressionMethod),
'-tf', '-tf',
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
'-P' '-P'
@ -99,7 +99,7 @@ export async function extractTar(
const workingDirectory = getWorkingDirectory() const workingDirectory = getWorkingDirectory()
await io.mkdirP(workingDirectory) await io.mkdirP(workingDirectory)
const args = [ const args = [
getCompressionProgram(compressionMethod), ...getCompressionProgram(compressionMethod),
'-xf', '-xf',
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
'-P', '-P',