Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
use cmd /c instead of /k (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqinzheng authored and qfyin committed Jan 31, 2019
1 parent 1fa9c33 commit 71b9064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pai/paiJobManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export class PAIJobManager extends Singleton {
}
this.simulateTerminal.show(true);
if (os.platform() === 'win32') {
this.simulateTerminal.sendText(`cmd /k "${path.join(jobDir, param.config.taskRoles[0].name, scriptName)}"`);
this.simulateTerminal.sendText(`cmd /c "${path.join(jobDir, param.config.taskRoles[0].name, scriptName)}"`);
} else {
this.simulateTerminal.sendText(`bash '${path.join(jobDir, param.config.taskRoles[0].name, scriptName)}'`);
}
Expand Down

0 comments on commit 71b9064

Please sign in to comment.