From 937455f60b2aff76e801e3d24fbdc0c7df59a992 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 2 Mar 2015 10:11:03 -0300 Subject: Max depth on mrconfig-updater --- mrconfig-updater | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '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 -- cgit v1.2.3