From aac1c3832cf73f7057558d6ca388676a8929fbcf Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Wed, 31 Jul 2013 01:14:50 +0200 Subject: [PATCH] testing.. --- git_auto_pull.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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