mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
fix(console) io - > exec
This commit is contained in:
parent
f95c324fd4
commit
4074dd09f6
1 changed files with 2 additions and 4 deletions
|
|
@ -109,7 +109,7 @@
|
|||
*/
|
||||
function getOnMessage(pConnNum, callback) {
|
||||
return function(pCommand) {
|
||||
var lMsg, lWinCommand, lExec_func, firstChar,
|
||||
var lWinCommand, lExec_func, firstChar,
|
||||
connName,
|
||||
lError, lRet, lExecSymbols, isContain,
|
||||
dir, options = {};
|
||||
|
|
@ -169,11 +169,9 @@
|
|||
pCommand = connName + pCommand;
|
||||
pCommand = Util.addNewLine(pCommand);
|
||||
|
||||
lMsg = Util.stringifyJSON({
|
||||
Util.exec(callback, {
|
||||
stdout: pCommand
|
||||
});
|
||||
|
||||
io.sockets.emit('message', lMsg);
|
||||
} else if (WIN32 || firstChar === ' ' || isContain)
|
||||
exec(pCommand, options, lExec_func);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue