fix: use replace
This commit is contained in:
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}.`);
|
||||
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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user