We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0cdfa2 commit 37d6728Copy full SHA for 37d6728
src/main/osinstaller/CxInstaller.ts
@@ -112,7 +112,7 @@ export class CxInstaller {
112
return this.cliVersion;
113
}
114
try {
115
- const versionFilePath = path.join('checkmarx-ast-cli.version');
+ const versionFilePath = this.getVersionFilePath();
116
const versionContent = await fsPromises.readFile(versionFilePath, 'utf-8');
117
return versionContent.trim();
118
} catch (error) {
@@ -121,6 +121,10 @@ export class CxInstaller {
121
122
123
124
+ private getVersionFilePath(): string {
125
+ return path.join(__dirname,'../../../checkmarx-ast-cli.version');
126
+ }
127
+
128
private getCompressFolderName(): string {
129
return `ast-cli.${this.platform === 'win32' ? 'zip' : 'tar.gz'}`;
130
0 commit comments