diff options
-rwxr-xr-x | cleaner.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,9 +58,9 @@ lastweek=$((thisweek - retainweeks)) $verbose \# removing from $dir files ending in $suffix and older than week $lastweek if [ -z "$suffix" ]; then - find $dir -type f -printf '%f\n' + find $dir -maxdepth 1 -type f -printf '%f\n' else - find $dir -type f -name "*$suffix" -printf '%f\n' + find $dir -maxdepth 1 -type f -name "*$suffix" -printf '%f\n' fi | while read name do |