From a730821cf43df42174394b6273ac5fe474288007 Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Wed, 22 Feb 2023 18:11:20 -0800 Subject: [PATCH] Fix double zip issue? --- src/setup.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/setup.ts b/src/setup.ts index 6de7347..d533260 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -39,7 +39,10 @@ export default async (options?: { if (!cacheHit) { action.info(`Downloading a new version of Bun: ${url}`); const zipPath = await downloadTool(url); - const extractedPath = await extractZip(zipPath); + let extractedPath = await extractZip(zipPath); + if (extractedPath.endsWith(".zip")) { + extractedPath = await extractZip(extractedPath); + } const exePath = await extractBun(extractedPath); await mv(exePath, path); version = await verifyBun(path);