diff --git a/dist/utils/install.js b/dist/utils/install.js index a495990..b5d8378 100644 --- a/dist/utils/install.js +++ b/dist/utils/install.js @@ -6,6 +6,7 @@ import getHomeDir from './getHomeDir.js'; import { join } from 'path'; import { homedir } from 'os'; export default async (release) => { + console.log(getHomeDir(), homedir()); const asset = getAsset(release.assets); const path = join(getHomeDir(), '.bun', 'bin', asset.name); const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`); @@ -14,7 +15,6 @@ export default async (release) => { addPath(path); return; } - console.log(getHomeDir(), homedir()); info(`Downloading Bun from ${asset.asset.browser_download_url}.`); const zipPath = await downloadTool(asset.asset.browser_download_url); const extracted = await extractZip(zipPath, join(getHomeDir(), '.bun', 'bin')); diff --git a/src/utils/install.ts b/src/utils/install.ts index f451d9b..49f01b3 100644 --- a/src/utils/install.ts +++ b/src/utils/install.ts @@ -8,6 +8,7 @@ import { join } from 'path'; import { homedir } from 'os'; export default async(release: Release) => { + console.log(getHomeDir(), homedir()); const asset = getAsset(release.assets); const path = join(getHomeDir(), '.bun', 'bin', asset.name); const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`); @@ -16,7 +17,6 @@ export default async(release: Release) => { addPath(path); return; } - console.log(getHomeDir(), homedir()); info(`Downloading Bun from ${asset.asset.browser_download_url}.`);