mirror of
https://github.com/actions/toolkit.git
synced 2026-08-16 00:00:21 +02:00
Fix spread operator for getCompressionMethod
This commit is contained in:
Vendored
+2
-2
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user