|
|
@ -74,7 +74,7 @@ class Terminal { |
|
|
|
self.registerCommand('script', function execute (args, scopedCommands, append) { |
|
|
|
self.registerCommand('script', function execute (args, scopedCommands, append) { |
|
|
|
var script = String(args[0]) |
|
|
|
var script = String(args[0]) |
|
|
|
scopedCommands.log(`> ${script}`) |
|
|
|
scopedCommands.log(`> ${script}`) |
|
|
|
if (self._opts.cmdInterpreter && self.opts.cmdInterpreter.interpret(script)) return |
|
|
|
if (self._opts.cmdInterpreter && self._opts.cmdInterpreter.interpret(script)) return |
|
|
|
self._shell(script, scopedCommands, function (error, output) { |
|
|
|
self._shell(script, scopedCommands, function (error, output) { |
|
|
|
if (error) scopedCommands.error(error) |
|
|
|
if (error) scopedCommands.error(error) |
|
|
|
else scopedCommands.log(output) |
|
|
|
else scopedCommands.log(output) |
|
|
|