diff --git a/src/index.ts b/src/index.ts index 8b6fdb9..76675d1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,7 @@ const main = async() => { info(`Going to install release ${release.version}`); - await install(release, token, customDownloadUrl === null); + await install(release, token, customDownloadUrl !== null); setOutput('bun-version', release.tag_name); } catch(e) { diff --git a/src/utils/install.ts b/src/utils/install.ts index e172df9..79d9d68 100644 --- a/src/utils/install.ts +++ b/src/utils/install.ts @@ -5,7 +5,6 @@ import { addPath, info } from '@actions/core'; import getAsset from './getAsset.js'; import { join } from 'path'; import { homedir } from 'os'; -import { readdirSync } from 'fs'; export default async(release: Release, token: string, customUrl: boolean) => { const asset = getAsset(release.assets);