mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
bea692dd9f
commit
61764f668e
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