Skip to content

Commit fe062f6

Browse files
committed
fix versionFilePath path
1 parent d867e37 commit fe062f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/osinstaller/CxInstaller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ export class CxInstaller {
123123
}
124124

125125
private getVersionFilePath(): string {
126-
const dirname = __dirname;
127-
if (dirname === '/') { // This is the root directory
126+
const processCwd = process.cwd();
127+
if (processCwd === '/') { // This is the root directory
128128
return 'checkmarx-ast-cli.version';
129129
}
130-
return path.join(dirname, 'checkmarx-ast-cli.version');
130+
return path.join(processCwd, 'checkmarx-ast-cli.version');
131131
}
132132

133133
private getCompressFolderName(): string {

0 commit comments

Comments
 (0)