mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Use /bin/sh from exec()
This commit is contained in:
10
lib/utils.js
10
lib/utils.js
@@ -44,15 +44,7 @@ exports.p = function (x) {
|
||||
};
|
||||
|
||||
exports.exec = function (command) {
|
||||
// TODO TODO TODO
|
||||
// The following line needs to be replaced with proper command line
|
||||
// parsing. at the moment quoted strings will not be picked up as a single
|
||||
// argument.
|
||||
var args = command.split(/\s+/);
|
||||
|
||||
var file = args.shift();
|
||||
|
||||
var child = node.createChildProcess(file, args);
|
||||
var child = node.createChildProcess("/bin/sh", ["-c", command]);
|
||||
var stdout = "";
|
||||
var stderr = "";
|
||||
var promise = new node.Promise();
|
||||
|
||||
Reference in New Issue
Block a user