fix bug in runCmd
This commit is contained in:
parent
a3a02def2a
commit
b38dddbf68
@ -18,7 +18,7 @@ isFromAdmin = (res) ->
|
||||
res.message.user.room is process.env.ADMIN_ROOM?.replace(':','#') or res.robot.adapterName is 'shell'
|
||||
|
||||
runCmd = (cmd,res,cb) ->
|
||||
res.send 'Operazione in corso: '+cmd
|
||||
if res? then res.send 'Operazione in corso: '+cmd
|
||||
cp.exec cmd, (err,stdout,stderr) ->
|
||||
if res?
|
||||
if err
|
||||
|
Loading…
Reference in New Issue
Block a user