diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-08 09:31:19 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-08 09:31:19 -0300 |
commit | 720ae2033e342223abfbd41b76c4622aea938320 (patch) | |
tree | d9d724fd6b5053b002be343b56753a8c5933c2c0 | |
parent | 5e8992fa950206127230595234de0b866e5229f4 (diff) | |
download | utils-git-720ae2033e342223abfbd41b76c4622aea938320.tar.gz utils-git-720ae2033e342223abfbd41b76c4622aea938320.tar.bz2 |
Find folders under symlinks
-rwxr-xr-x | mrconfig-updater | 3 |
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 |