Fix not being added to path

This commit is contained in:
Ashcon Partovi 2023-02-22 17:51:12 -08:00
parent 9c14b74b45
commit 3f252a86a6
3 changed files with 80 additions and 81 deletions

View file

@ -17,7 +17,9 @@ export default async (options?: {
}> => {
const { url, cacheKey } = getDownloadUrl(options);
const cacheEnabled = cacheKey && cache.isFeatureAvailable();
const path = join(homedir(), ".bun", "bin", "bun");
const dir = join(homedir(), ".bun", "bin");
action.addPath(dir);
const path = join(dir, "bun");
let version: string | undefined;
let cacheHit = false;
if (cacheEnabled) {