diff --git a/lib/server/console.js b/lib/server/console.js index c04ae923..5b0ce6ce 100644 --- a/lib/server/console.js +++ b/lib/server/console.js @@ -149,7 +149,7 @@ } if (!ClientFuncs[connNum]) - ClientFuncs[connNum] = Util.bind(getExec, function(json, error, stderr) { + ClientFuncs[connNum] = Util.bind(setExec, function(json, error, stderr) { log(connNum, error, 'error'); log(connNum, stderr, 'stderror'); @@ -173,7 +173,7 @@ } else if (WIN32 || firstChar === ' ' || isContain) exec(command, options, lExec_func); else - getSpawn(command, options, callback); + setSpawn(command, options, callback); } } @@ -182,7 +182,7 @@ * function send result of command to client * @param callback */ - function getExec(callback, error, stdout, stderr) { + function setExec(callback, error, stdout, stderr) { var json, errorStr = stderr || error; @@ -197,7 +197,7 @@ Util.exec(callback, json, error, stderr); } - function getSpawn(сommand, options, callback) { + function setSpawn(сommand, options, callback) { var cmd, error, args = сommand.split(' '), send = function(error, data) {