Add an option to execute additional commands before GDB when using SSH
Closes #15
This commit is contained in:
parent
cae555af40
commit
d6ee383e75
2 changed files with 4 additions and 1 deletions
|
|
@ -93,7 +93,9 @@ export class MI2 extends EventEmitter implements IBackend {
|
|||
screen: args.remotex11screen
|
||||
};
|
||||
}
|
||||
this.sshConn.exec(this.application + " " + this.preargs.join(" "), execArgs, (err, stream) => {
|
||||
let sshCMD = this.application + " " + this.preargs.join(" ");
|
||||
if (args.bootstrap) sshCMD = args.bootstrap + " && " + sshCMD;
|
||||
this.sshConn.exec(sshCMD, execArgs, (err, stream) => {
|
||||
if (err) {
|
||||
this.log("stderr", "Could not run " + this.application + " over ssh!");
|
||||
this.log("stderr", err.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue