mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
b850ea36f1
commit
d870c6be0a
1 changed files with 2 additions and 2 deletions
|
|
@ -40,14 +40,14 @@ exports.listen = function(pServer){
|
|||
function getExec(error, stdout, stderr) {
|
||||
if(stdout){
|
||||
if(Win32_b)
|
||||
stdout = win2unicode(stdout);
|
||||
stdout = stdout.toString('utf-8');
|
||||
|
||||
console.log(stdout);
|
||||
Socket.send(stdout);
|
||||
}
|
||||
if(stderr){
|
||||
if(Win32_b)
|
||||
stderr = win2unicode(stderr);
|
||||
stderr = stderr.toString('utf-8');
|
||||
|
||||
console.log('stderr: ' + stderr);
|
||||
Socket.send(stderr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue