Last active
December 12, 2015 06:28
-
-
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.
This file contains hidden or 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