aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-01-18 14:09:48 -0200
committerSilvio Rhatto <rhatto@riseup.net>2019-01-18 14:09:48 -0200
commita255a64c2847e13e3bf221c67bbc2337133361c2 (patch)
tree0184e367e408b38c2588a448e6f6ac9b9fd41cf8
parent23ea5f38f2232e77d22b57be096b1281df90d29f (diff)
downloadscripts-a255a64c2847e13e3bf221c67bbc2337133361c2.tar.gz
scripts-a255a64c2847e13e3bf221c67bbc2337133361c2.tar.bz2
Max depth of 1 for dangling-archive
-rwxr-xr-xdangling-archive2
1 files changed, 1 insertions, 1 deletions
diff --git a/dangling-archive b/dangling-archive
index babe4d6..dfb9c05 100755
--- a/dangling-archive
+++ b/dangling-archive
@@ -10,7 +10,7 @@ IMAGES="$HOME/data/images/incoming"
IMAGES_PATTERN=".*\.(png|jpg|jpeg|gif|svg)"
DOC="$HOME/data/doc/incoming"
DOC_PATTERN=".*\.(txt|doc|docx|rtf|pdf|sxc|csv|epub|mobi|djvu)"
-FIND_OPTS="-regextype posix-egrep -iregex"
+FIND_OPTS="-maxdepth 1 -regextype posix-egrep -iregex"
# Ensure all folders exist
mkdir -p $LOAD $IMAGES $DOC