Skip to content

Commit 847fb8a

Browse files
committed
check
1 parent 092b75f commit 847fb8a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/main/osinstaller/CxInstaller.ts

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

7272
await this.extractArchive(zipPath, this.resourceDirPath);
73+
fs1.chmodSync(this.getExecutablePath(), 0o777);
7374
console.log('Extracted CLI to:', this.resourceDirPath);
7475
} catch (error) {
7576
console.error('Error during installation:', error);

src/main/wrapper/CxWrapper.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ 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";
1110

1211

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

5352
async initializeCommands(formatRequired: boolean): Promise<string[]> {
5453
await this.cxInstaller.downloadIfNotInstalledCLI()
55-
fs1.chmodSync(this.cxInstaller.getExecutablePath(), 0o777);
5654
this.config.pathToExecutable = this.cxInstaller.getExecutablePath();
5755

5856
const list: string[] = [];

0 commit comments

Comments
 (0)