feat: clean version

This commit is contained in:
xHyroM 2022-07-12 08:39:36 +02:00
parent 705032ffe3
commit ad6ee5950c
4 changed files with 14 additions and 18 deletions

View file

@ -6,7 +6,8 @@ import getHomeDir from './getHomeDir.js';
import { join } from 'path';
export default async(release: Release) => {
const cache = find('bun', release.tag_name);
const cache = find('bun', release.version);
console.log(cache);
if (cache) {
info(`Using cached Bun installation from ${cache}.`);
addPath(cache);
@ -23,7 +24,7 @@ export default async(release: Release) => {
const newCache = await cacheDir(
extracted,
'bun',
release.tag_name
release.version
);
info(`Cached Bun to ${newCache}.`);