]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Find folders under symlinks
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Oct 2017 12:31:19 +0000 (09:31 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Oct 2017 12:31:19 +0000 (09:31 -0300)
mrconfig-updater

index 0781709279bed947ac4816eaf1ddb66d93da2b3c..1403276216aacbde1cccefb40ee6b7ea8255d6d6 100755 (executable)
@@ -28,7 +28,8 @@ for folder in $FOLDERS; do
     continue
   fi
 
-  find $folder -maxdepth $DEPTH -name '.git' | while read repo; do
+  # A trailing slash helps to find following symbolic links
+  find $folder/ -maxdepth $DEPTH -name '.git' | while read repo; do
     echo "[`dirname $repo`]" >> $MRCONFIG
   done
 done