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.
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 | |
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