Skip to content

Commit 383dda6

Browse files
committed
wip
1 parent 77d5347 commit 383dda6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

brewkit/unarchive.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,10 @@ export default async function (
5656
}
5757
} else {
5858
await input.getReader().read(); //FIXME inefficient for predownloaded case
59-
const unzip = await new Deno.Command("unzip", {
59+
const { success } = await new Deno.Command("unzip", {
6060
args: [predownloaded_file.string],
6161
stdin: "piped",
62-
}).spawn();
63-
const [_, { success }] = await Promise.all([
64-
input.pipeTo(unzip.stdin),
65-
unzip.status,
66-
]);
62+
}).spawn().status;
6763
if (!success) {
6864
throw new Error("unarchive failed");
6965
}

0 commit comments

Comments
 (0)