mirror of https://github.com/actions/toolkit
Fix spread operator for getCompressionMethod
parent
2ae31879b7
commit
ed96e21792
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue