From 720ae2033e342223abfbd41b76c4622aea938320 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 8 Oct 2017 09:31:19 -0300 Subject: Find folders under symlinks --- mrconfig-updater | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mrconfig-updater') 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 -- cgit v1.2.3