From: Silvio Rhatto Date: Mon, 2 Mar 2015 13:11:03 +0000 (-0300) Subject: Max depth on mrconfig-updater X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=937455f60b2aff76e801e3d24fbdc0c7df59a992;p=utils-git.git Max depth on mrconfig-updater --- diff --git a/mrconfig-updater b/mrconfig-updater index c758aaa..f860a5c 100755 --- a/mrconfig-updater +++ b/mrconfig-updater @@ -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