Skip to content

Commit 427a15a

Browse files
committed
Fixed bug in execute-service
1 parent 6737f13 commit 427a15a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/app/services-system/execute-service.service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export class ExecuteServiceService extends NativeService {
2727
}
2828

2929
if (this.process.platform === 'darwin') {
30-
command = '/usr/local/bin/' + command;
30+
if (command.indexOf('osascript') === -1) {
31+
command = '/usr/local/bin/' + command;
32+
} else {
33+
command = '/usr/bin/' + command;
34+
}
3135
}
3236

3337
exec(command, {name: 'Leapp', timeout: 60000 }, (err, stdout, stderr) => {

src/app/services/ssm.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ export class SsmService {
139139
}, err2 => {
140140
this.app.toast(err2.stack, ToastLevel.ERROR, 'Error in running instance via SSM');
141141
});
142-
143142
}
144143

145144
/**

0 commit comments

Comments
 (0)