Skip to content

Commit

Permalink
Fix upgrade infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPhamous committed Feb 3, 2025
1 parent c60c2a3 commit 642d9e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/checkVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ async function checkProductionCLIVersion() {
}

export async function checkVersion() {
// Skip version check if running upgrade command
const args = process.argv.slice(2);
if (args[0] === "upgrade") return;

const version = pkg.version;
const latestVersion = await checkProductionCLIVersion();

Expand Down

0 comments on commit 642d9e5

Please sign in to comment.