Permalink
Browse files

Separate the heroku env slurping into a separate script and simplify …

…it considerably.
  • Loading branch information...
1 parent a04ae2b commit 04deccfdb682b3c59d2aea1cd33a6834d3ae3aa3 @seancribbs seancribbs committed Mar 7, 2012
Showing with 4 additions and 12 deletions.
  1. +1 −12 bin/hubot
  2. +3 −0 bin/hubot-dev
View
@@ -1,17 +1,6 @@
#!/bin/sh
-#/usr/bin/env npm install
+/usr/bin/env npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
-echo "#!/bin/sh" > bin/env.sh
-exec heroku config --app bashubot |
-while read line; do
- if [[ $line != PATH* && $line != REDISTOGO_URL* ]]
- then
- echo "export ${line/ *=> /=\"}\"" >> bin/env.sh;
- fi
-
-done
-chmod +x bin/env.sh
-source bin/env.sh
exec node_modules/.bin/hubot -n bashobot "$@"
View
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/bin/env `heroku config --app bashubot | grep -v REDIS | awk '{print $1 "=" $3}'` bin/hubot "$@" -a shell

0 comments on commit 04deccf

Please sign in to comment.