From 05a6aee782cff8b3765373d9698c9d6911236427 Mon Sep 17 00:00:00 2001 From: BARDIS George Date: Wed, 6 Jul 2022 11:44:25 +0300 Subject: [PATCH] fix: Issue-131: include all nested folders in artifact unzip --- src/bin/tools/downloadAndUnzip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/tools/downloadAndUnzip.ts b/src/bin/tools/downloadAndUnzip.ts index ea1853a9..3be29c5c 100644 --- a/src/bin/tools/downloadAndUnzip.ts +++ b/src/bin/tools/downloadAndUnzip.ts @@ -17,7 +17,7 @@ export function downloadAndUnzip(params: { url: string; destDirPath: string; pat execSync(`curl -L ${url} -o ${zipFilePath}`, { "cwd": tmpDirPath }); - execSync(`unzip ${zipFilePath}${pathOfDirToExtractInArchive === undefined ? "" : ` "${pathOfDirToExtractInArchive}/*"`}`, { + execSync(`unzip ${zipFilePath}${pathOfDirToExtractInArchive === undefined ? "" : ` "${pathOfDirToExtractInArchive}/**/*"`}`, { "cwd": tmpDirPath, });