Skip to content

Commit 0c91231

Browse files
author
infiniteregrets
committed
..
1 parent 28f88d6 commit 0c91231

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/binaryManager.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export async function getLocalMirrordBinary(version?: string): Promise<string |
4949

5050
// we use semver.gte here because installedVersion can be greater than the latest version
5151
// if we are running on the release CI.
52-
if (installedVersion && semver.gte(installedVersion, version)) {
52+
if ((process.env.CI_BUILD_PLUGIN === "true" && installedVersion && semver.gte(installedVersion, version)) ||
53+
(!process.env.CI_BUILD_PLUGIN && installedVersion === version)) {
5354
return mirrordPath;
5455
}
5556
} else {

0 commit comments

Comments
 (0)