]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Max depth on mrconfig-updater
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Mar 2015 13:11:03 +0000 (10:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Mar 2015 13:11:03 +0000 (10:11 -0300)
mrconfig-updater

index c758aaa13fc3c7e5fd0376019dd2a7fcb35d61c0..f860a5cf36e579ca3577d12d1e143121dea7d828 100755 (executable)
@@ -15,6 +15,7 @@
 # Configuration
 MRCONFIG="$HOME/.custom/mrconfig-automatic"
 FOLDERS="apps file code"
+DEPTH="2"
 CWD="`pwd`"
 
 # Setup
@@ -23,7 +24,7 @@ rm -f $MRCONFIG
 
 # Iterate
 for folder in $FOLDERS; do
-  find $folder -name '.git' | while read repo; do
+  find $folder -maxdepth $DEPTH -name '.git' | while read repo; do
     echo "[`dirname $repo`]" >> $MRCONFIG
   done
 done