diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-03-02 10:11:03 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-03-02 10:11:03 -0300 |
commit | 937455f60b2aff76e801e3d24fbdc0c7df59a992 (patch) | |
tree | 2f1a92f58a2367d4181b15d68f908855ed2d1b0b | |
parent | a825a4ab6b572e25e03231598dd9723d8753a932 (diff) | |
download | utils-git-937455f60b2aff76e801e3d24fbdc0c7df59a992.tar.gz utils-git-937455f60b2aff76e801e3d24fbdc0c7df59a992.tar.bz2 |
Max depth on mrconfig-updater
-rwxr-xr-x | mrconfig-updater | 3 |
1 files changed, 2 insertions, 1 deletions
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 |