Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteregrets committed Nov 18, 2023
1 parent 28f88d6 commit 0c91231
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/binaryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export async function getLocalMirrordBinary(version?: string): Promise<string |

// we use semver.gte here because installedVersion can be greater than the latest version
// if we are running on the release CI.
if (installedVersion && semver.gte(installedVersion, version)) {
if ((process.env.CI_BUILD_PLUGIN === "true" && installedVersion && semver.gte(installedVersion, version)) ||
(!process.env.CI_BUILD_PLUGIN && installedVersion === version)) {
return mirrordPath;
}
} else {
Expand Down

0 comments on commit 0c91231

Please sign in to comment.