Created
September 14, 2016 07:39
-
-
Save TJRoger/d5eed61490f765c51da779ca27fcd715 to your computer and use it in GitHub Desktop.
update repo automatically
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/bash | |
for d in */ ; do | |
echo 'updated '$d' at '`date +%Y-%m-%d\ %H:%M:%S` >> ~/update.log | |
cd $d && (git pull origin master || ``) && cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment