Skip to content

Commit 94538c9

Browse files
Merge pull request #135 from Checkmarx/other/download-cli-location
2 parents d2c074a + b14dcbd commit 94538c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/osinstaller/CxInstaller.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export class CxInstaller {
4747

4848
const architecture = this.getArchitecture();
4949

50+
const envVar = process.env.CX_CLI_LOCATION;
51+
if (envVar !== undefined) {
52+
return `${envVar}/ast-cli_${cliVersion}_${platformData.platform}_${architecture}.${platformData.extension}`;
53+
}
54+
5055
return `https://download.checkmarx.com/CxOne/CLI/${cliVersion}/ast-cli_${cliVersion}_${platformData.platform}_${architecture}.${platformData.extension}`;
5156
}
5257

0 commit comments

Comments
 (0)