Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yulii committed Nov 15, 2015
1 parent 36c7811 commit c076a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/self-integration.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ module.exports = (robot) ->
robot.respond /show$/i, (msg) ->
@child_process = require('child_process')
@child_process.exec 'pwd', (error, stdout, stderr) ->
msg.send command
msg.send "pwd"
msg.send "```#{error}```" if error? && error.length > 0
msg.send "```#{stdout}```" if stdout? && stdout.length > 0
msg.send "```#{stderr}```" if stderr? && stderr.length > 0
@child_process.exec 'ls -ltr', (error, stdout, stderr) ->
msg.send command
msg.send "ls -ltr"
msg.send "```#{error}```" if error? && error.length > 0
msg.send "```#{stdout}```" if stdout? && stdout.length > 0
msg.send "```#{stderr}```" if stderr? && stderr.length > 0
Expand Down

0 comments on commit c076a8f

Please sign in to comment.