From 926d5905540310d44f7baf98ac154327b7dde907 Mon Sep 17 00:00:00 2001 From: zhyupe Date: Tue, 26 Mar 2024 18:50:02 +0800 Subject: [PATCH] Update sources/corepackUtils.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Maƫl Nison --- sources/corepackUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/corepackUtils.ts b/sources/corepackUtils.ts index 43bc58149..fa008c83e 100644 --- a/sources/corepackUtils.ts +++ b/sources/corepackUtils.ts @@ -167,7 +167,7 @@ async function download(installTarget: string, url: string, algo: string, binPat } stream.pipe(sendTo); - const streamHash = stream.pipe(createHash(algo)); + const streamHash = !binPath ? stream.pipe(createHash(algo)) : null; await once(sendTo, `finish`); let hash: string;