Skip to content

Commit 9f0b3e2

Browse files
committed
check chmod location
1 parent 627a5e8 commit 9f0b3e2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/osinstaller/CxInstaller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export class CxInstaller {
7070
console.log('Downloaded CLI to:', zipPath);
7171

7272
await this.extractArchive(zipPath, this.resourceDirPath);
73-
fs1.chmodSync(this.getExecutablePath(), 0o777);
7473
console.log('Extracted CLI to:', this.resourceDirPath);
7574
} catch (error) {
7675
console.error('Error during installation:', error);

src/main/wrapper/CxWrapper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {getLoggerWithFilePath, logger} from "./loggerConfig";
77
import * as os from "os";
88
import CxBFL from "../bfl/CxBFL";
99
import {CxInstaller} from "../osinstaller/CxInstaller";
10+
import fs1 from "fs";
1011

1112

1213
type ParamTypeMap = Map<CxParamType, string>;
@@ -51,6 +52,7 @@ export class CxWrapper {
5152

5253
async initializeCommands(formatRequired: boolean): Promise<string[]> {
5354
await this.cxInstaller.downloadIfNotInstalledCLI()
55+
fs1.chmodSync(this.cxInstaller.getExecutablePath(), 0o777);
5456
this.config.pathToExecutable = this.cxInstaller.getExecutablePath();
5557

5658
const list: string[] = [];

0 commit comments

Comments
 (0)