Created
October 29, 2012 17:02
-
-
Save aaronpk/3974909 to your computer and use it in GitHub Desktop.
Automatically update a git repo from "staging" branch and restart website if needed
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/bash | |
| output=`git pull origin staging` | |
| echo $output | |
| if [ "$output" != "Already up-to-date." ]; then | |
| git submodule update | |
| touch tmp/restart.txt | |
| echo Restarting Website | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment