mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 10:40:10 +08:00
fix: use replace
This commit is contained in:
parent
763bd6cb74
commit
ce4c816086
2
dist/utils/install.js
vendored
2
dist/utils/install.js
vendored
@ -19,7 +19,7 @@ export default async (release) => {
|
|||||||
info(`Cached Bun to ${newCache}.`);
|
info(`Cached Bun to ${newCache}.`);
|
||||||
addPath(newCache);
|
addPath(newCache);
|
||||||
console.log(extracted);
|
console.log(extracted);
|
||||||
const bunPath = join(getHomeDir(), ".bun", "bin", asset.name.replaceAll('.zip', ''));
|
const bunPath = join(getHomeDir(), ".bun", "bin", asset.name.replace('.zip', ''));
|
||||||
console.log(readdirSync(bunPath));
|
console.log(readdirSync(bunPath));
|
||||||
addPath(bunPath);
|
addPath(bunPath);
|
||||||
};
|
};
|
||||||
|
@ -31,7 +31,7 @@ export default async(release: Release) => {
|
|||||||
addPath(newCache);
|
addPath(newCache);
|
||||||
|
|
||||||
console.log(extracted);
|
console.log(extracted);
|
||||||
const bunPath = join(getHomeDir(), ".bun", "bin", asset.name.replaceAll('.zip', ''));
|
const bunPath = join(getHomeDir(), ".bun", "bin", asset.name.replace('.zip', ''));
|
||||||
console.log(readdirSync(bunPath));
|
console.log(readdirSync(bunPath));
|
||||||
addPath(bunPath);
|
addPath(bunPath);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user