fix bad reference

pull/3094/head
yann300 6 years ago
parent 28a4e7ca99
commit 32f5e4ea88
  1. 2
      src/app/panels/terminal.js

@ -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)

Loading…
Cancel
Save