]> git.donarmstrong.com Git - deb_pkgs/libapache-gallery-perl.git/commitdiff
move depth option earlier
authorDon Armstrong <don@donarmstrong.com>
Thu, 2 Nov 2017 18:11:17 +0000 (11:11 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 2 Nov 2017 18:11:17 +0000 (11:11 -0700)
debian/cron.daily

index 3a80f98f37ace16a0502edd8e102f9dad4b5488a..9c9a6c8150968b06b95824e78d1348ac05ad1b3c 100644 (file)
@@ -17,7 +17,7 @@ if [ -d "$cachedir" ]; then
     # remove empty directories
     start-stop-daemon --start --pidfile /dev/null --startas /bin/sh \
        --oknodo --chuid "$user" -- -c \
-       "find '$cachedir' -mindepth 1 -depth -type d -print0 | \
+       "find '$cachedir' -depth -mindepth 1 -type d -print0 | \
         xargs -r0 rmdir --ignore-fail-on-non-empty"
 fi