Skip to content

Commit

Permalink
Update sdk-manager.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Lobanov committed Sep 17, 2020
1 parent f927b8a commit e4c80a3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/sdk-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,7 @@ export class SDKManager {
const commandString = `${this.sdkManagerPath} ${args.join(" ")}`;
console.log(`[command]${commandString}`);

let exitCode;
if (os.platform() === "linux") {
exitCode = await exec.exec("sudo", [this.sdkManagerPath, ...args], options);
} else {
exitCode = await exec.exec(`"${this.sdkManagerPath}"`, args, options);
}

const exitCode = await exec.exec(`"${this.sdkManagerPath}"`, args, options);
if (exitCode !== 0) {
throw new Error(`'${commandString}' has finished with exit code '${exitCode}'`);
}
Expand Down

0 comments on commit e4c80a3

Please sign in to comment.