aboutsummaryrefslogtreecommitdiff
path: root/mrconfig-updater
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-03-02 10:11:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-03-02 10:11:03 -0300
commit937455f60b2aff76e801e3d24fbdc0c7df59a992 (patch)
tree2f1a92f58a2367d4181b15d68f908855ed2d1b0b /mrconfig-updater
parenta825a4ab6b572e25e03231598dd9723d8753a932 (diff)
downloadutils-git-937455f60b2aff76e801e3d24fbdc0c7df59a992.tar.gz
utils-git-937455f60b2aff76e801e3d24fbdc0c7df59a992.tar.bz2
Max depth on mrconfig-updater
Diffstat (limited to 'mrconfig-updater')
-rwxr-xr-xmrconfig-updater3
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