mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 17:13:45 +03:00
parent
dea5c5560e
commit
22acdb76f6
@ -17,7 +17,7 @@ exports.safeExec = function(command, options, callback) {
|
|||||||
var child = childProcess.exec(command, options, function(error, stdout, stderr) {
|
var child = childProcess.exec(command, options, function(error, stdout, stderr) {
|
||||||
if (error)
|
if (error)
|
||||||
process.exit(error.code || 1);
|
process.exit(error.code || 1);
|
||||||
else
|
else if (callback)
|
||||||
callback(null);
|
callback(null);
|
||||||
});
|
});
|
||||||
child.stderr.pipe(process.stderr);
|
child.stderr.pipe(process.stderr);
|
||||||
|
Loading…
Reference in New Issue
Block a user