Created
September 2, 2013 17:45
-
-
Save troyscott/6415411 to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env sh | |
| echo "git pull for jekyll_wp_blog" | |
| cd /home/scottt/sync_websites/jekyll_wp_blog && git pull | |
| jekyll build | |
| cd .. && rsync -a -f"- .git/" -f"- README.md" -f"- js_cache/" -f"+ *" --delete jekyll_wp_blog/_site/ troyscott.github.io/ | |
| cd /home/scottt/sync_websites/troyscott.github.io && git status | |
| echo "update troyscot.github.io website" | |
| git add . | |
| git commit -m 'automatic sit update' | |
| git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment