Skip to content

Commit

Permalink
Add 'set -e' to bin/hubot, so it exits if npm install fails
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Jul 24, 2014
1 parent 352ccad commit fd1239e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/bin/hubot
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh

set -e

npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"

exec node_modules/.bin/hubot "$@"

0 comments on commit fd1239e

Please sign in to comment.