#!/bin/bash -l

# if you use public key authentication for any of these git repos,
# make sure your key doesn't have a passphrase or the fetch will
# fail

cd $HOME
[ -d $(__gitdir) ] && git remote update &> /dev/null

cd $HOME/.vim
[ -d $(__gitdir) ] && git remote update &> /dev/null

if [ -d $HOME/repos ]; then
  cd $HOME/repos
  for dir in ./*/
  do
    dir=${dir%*/}
    cd "$dir"
    [ -d $(__gitdir) ] && git remote update &> /dev/null
    cd ..
  done
fi


#!/bin/bash -l

cd $HOME
[ -d $(__gitdir) ] && git remote update &> /dev/null

cd $HOME/.vim
[ -d $(__gitdir) ] && git remote update &> /dev/null

if [ -d $HOME/repos ]; then
  cd $HOME/repos
  for dir in ./*/
  do
    dir=${dir%*/}
    cd "$dir"
    [ -d $(__gitdir) ] && git remote update &> /dev/null
    cd ..
  done
fi


--- 
+++ 
@@ -1,8 +1,4 @@
 #!/bin/bash -l
-
-# if you use public key authentication for any of these git repos,
-# make sure your key doesn't have a passphrase or the fetch will
-# fail
 
 cd $HOME
 [ -d $(__gitdir) ] && git remote update &> /dev/null
Add comment to remote update cron script about ssh keys
