Skip to content

Instantly share code, notes, and snippets.

@3100
Last active December 12, 2015 06:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save 3100/4728886 to your computer and use it in GitHub Desktop.
Pull hubot-scripts from remote repos. Install expect if you don't have. You need to init <SCRIPT_PATH> with git and add remote origin.
#!/bin/sh
SCRIPT_PATH="/your/hubot/node_modules/hubot-scripts"
PASSPHRASE="hoo"
cd $SCRIPT_PATH
expect -c "
spawn git pull origin master
expect Enter ; send \"$PASSPHRASE\n\"
interact
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment