aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-08 09:31:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-08 09:31:19 -0300
commit720ae2033e342223abfbd41b76c4622aea938320 (patch)
treed9d724fd6b5053b002be343b56753a8c5933c2c0
parent5e8992fa950206127230595234de0b866e5229f4 (diff)
downloadutils-git-720ae2033e342223abfbd41b76c4622aea938320.tar.gz
utils-git-720ae2033e342223abfbd41b76c4622aea938320.tar.bz2
Find folders under symlinks
-rwxr-xr-xmrconfig-updater3
1 files changed, 2 insertions, 1 deletions
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