From: Simon Ruderich Date: Tue, 29 Apr 2014 13:46:23 +0000 (+0200) Subject: crontab.d/jobs.daily/prune-logs: follow symlink X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=a87cb2b0686687f275c77507f96dbed06c08cba3 crontab.d/jobs.daily/prune-logs: follow symlink find doesn't follow symlinks by default. The "/" forces it to change to the directory even if it's a symlink. --- diff --git a/crontab.d/jobs.daily/prune-logs b/crontab.d/jobs.daily/prune-logs index 2678a3b..9295aa9 100755 --- a/crontab.d/jobs.daily/prune-logs +++ b/crontab.d/jobs.daily/prune-logs @@ -29,4 +29,4 @@ fi # Remove empty directories. rmdir "$logdir"/* 2>/dev/null || true -exec find "$logdir" -type f -mtime +14 -delete +exec find "$logdir/" -type f -mtime +14 -delete