From: Silvio Rhatto Date: Sun, 8 Oct 2017 12:31:19 +0000 (-0300) Subject: Find folders under symlinks X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=720ae2033e342223abfbd41b76c4622aea938320;p=utils-git.git Find folders under symlinks --- diff --git a/mrconfig-updater b/mrconfig-updater index 0781709..1403276 100755 --- a/mrconfig-updater +++ b/mrconfig-updater @@ -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