Skip to content

Commit

Permalink
fix: do not risk to exhaust github quotas
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Feb 13, 2025
1 parent fdee546 commit c8ebd5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/ReleaseManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class ReleaseManager {
}

public async exists(version: string): Promise<string | undefined> {
const connectorDir = path.join(getAppDir(), "releases", `connector-${version}`, "dist")
if (fs.existsSync(connectorDir)) return

const release = await this.getGithubRelease(version)

if (!release) return `The release ${chalk.red(version)} does not exist.`
Expand Down

0 comments on commit c8ebd5a

Please sign in to comment.