We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d5347 commit 383dda6Copy full SHA for 383dda6
brewkit/unarchive.ts
@@ -56,14 +56,10 @@ export default async function (
56
}
57
} else {
58
await input.getReader().read(); //FIXME inefficient for predownloaded case
59
- const unzip = await new Deno.Command("unzip", {
+ const { success } = await new Deno.Command("unzip", {
60
args: [predownloaded_file.string],
61
stdin: "piped",
62
- }).spawn();
63
- const [_, { success }] = await Promise.all([
64
- input.pipeTo(unzip.stdin),
65
- unzip.status,
66
- ]);
+ }).spawn().status;
67
if (!success) {
68
throw new Error("unarchive failed");
69
0 commit comments