mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-17 20:18:24 +02:00
Fix double zip issue?
This commit is contained in:
parent
8c368db359
commit
a730821cf4
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue