fix: use replace

This commit is contained in:
xHyroM 2022-07-11 10:15:09 +02:00
parent 763bd6cb74
commit ce4c816086
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export default async (release) => {
info(`Cached Bun to ${newCache}.`);
addPath(newCache);
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));
addPath(bunPath);
};

View File

@ -31,7 +31,7 @@ export default async(release: Release) => {
addPath(newCache);
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));
addPath(bunPath);
}