fix: path

This commit is contained in:
xHyroM 2022-07-11 10:10:16 +02:00
parent ec51d40f3c
commit 8463dee038
2 changed files with 7 additions and 6 deletions

View file

@ -18,7 +18,7 @@ export default async(release: Release) => {
info(`Downloading Bun from ${asset.browser_download_url}.`);
const zipPath = await downloadTool(asset.browser_download_url);
const extracted = await extractZip(zipPath);
const extracted = await extractZip(zipPath, join(getHomeDir(), ".bun", "bin"));
const newCache = await cacheDir(
extracted,
@ -29,7 +29,7 @@ export default async(release: Release) => {
info(`Cached Bun to ${newCache}.`);
addPath(newCache);
info(extracted);
const bunPath = join(extracted);
console.log(extracted);
const bunPath = join(getHomeDir(), ".bun", "bin");
addPath(bunPath);
}