Skip to content

Commit 3cd4711

Browse files
authored
Merge pull request #68 from c-3lab/feature/fix-unzip-cmd
Destination of the unzip decompression seems to be wrong (#66)
2 parents 7dc9a80 + 0b60038 commit 3cd4711

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libs/postprocess/unzipper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Unzipper extends BasePostprocess {
1414
const rawOutput = await process.output();
1515
Deno.stdout.write(rawOutput);
1616
} else {
17-
await decompress(targetPath);
17+
await decompress(targetPath, targetDir);
1818
}
1919
return targetDir;
2020
}

tests/libs/actions.install.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ describe("InstallAction", () => {
423423
} else {
424424
assertSpyCall(denoRunStub, 0, {
425425
args: [{
426-
cmd: ["unzip", "./data_files/unzip/dummy.zip", "-d", "./"],
426+
cmd: ["unzip", "./data_files/unzip/dummy.zip", "-d", "./data_files/unzip"],
427427
}],
428428
});
429429
}

tests/libs/actions.search.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ describe("SearchAction", () => {
641641
"unzip",
642642
"./data_files/catalog_title2_name2-1/dummy.zip",
643643
"-d",
644-
"./",
644+
"./data_files/catalog_title2_name2-1",
645645
],
646646
}],
647647
});

0 commit comments

Comments
 (0)