Skip to content

Commit 85d62e6

Browse files
committed
Improved executing scripts in remote editing mode.
1 parent cf86a2b commit 85d62e6

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

edit.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,19 @@ function exec($, model) {
396396
}
397397

398398
const filename = F.Path.normalize(makepath(model.path));
399-
F.shell((model.data || '{0}').format(filename), $.callback);
399+
400+
F.shell((model.data || '{0}').format(filename), function(err, a, b) {
401+
if (err) {
402+
$.invalid(err);
403+
} else {
404+
let builder = [];
405+
if (b)
406+
builder.push(b);
407+
if (a)
408+
builder.push(a);
409+
$.callback(builder.join('\n'));
410+
}
411+
});
400412
}
401413

402414
function customimport($, model) {

0 commit comments

Comments
 (0)