Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| #!/bin/bash | |
| # V0.8.0 Runs this script second during a deploy to safely retrieve updates. | |
| cd /home/git/ | |
| # for each folder, git pull | |
| for D in */; do | |
| cd ${D}; # Go into the repository. | |
| git stash -u; # Stash any changes. | |
| git pull; # Pull updates. | |
| git stash pop; # Unstash changes (May fail!) | |
| cd ..; # Go out of the repository. | |
| done |