diff --git a/git_auto_pull.sh b/git_auto_pull.sh index 0770633..e8b0008 100755 --- a/git_auto_pull.sh +++ b/git_auto_pull.sh @@ -13,13 +13,18 @@ white='\033[37m' for gitrepo in `find ./ -maxdepth 4 -type d -name ".git" | sed 's/\/.git\+$//'`; do cd $gitrepo - echo $gitrepo if [ -e do_not_auto_check ]; then cd - > /dev/null continue fi; + + echo $gitrepo + git status - git pull 2>/dev/null + #echo $A | grep "working directory clean" + #if [ $? -eq 1 ]; then + git pull 2>/dev/null + #fi; #RESULT=`git pull 2>/dev/null` #if [ !`echo $RESULT | grep "up to date"` ]; then