Created
September 1, 2015 12:51
-
-
Save brodul/1ebaebd6211860f508e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
npm install | |
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH" | |
# how to parse an ini file in bash :D | |
python3 - <<END | |
import configparser | |
import os | |
config = configparser.ConfigParser() | |
config.read('hubot.ini') | |
( os.environment[k]=v for k, v in config["environment"].iteritems() ) | |
END | |
exec node_modules/.bin/hubot -a irc --name "YouThere" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment