diff --git a/etc/periodic/daily/100.clean-disks b/etc/periodic/daily/100.clean-disks index 16255bd129f0..b12da6db4a59 100755 --- a/etc/periodic/daily/100.clean-disks +++ b/etc/periodic/daily/100.clean-disks @@ -27,10 +27,12 @@ case "$daily_clean_disks_enable" in rc=2 else echo "" - echo "Removing old temporary files:" + echo "Cleaning disks:" set -f noglob - args="$args "`echo " ${daily_clean_disks_files% }" | - sed 's/[ ][ ]*/ -name /g'` + args="$args -name "`echo "$daily_clean_disks_files" | + sed -e 's/^[ ]*//' \ + -e 's/[ ]*$//' \ + -e 's/[ ][ ]*/ -o -name /g'` case "$daily_clean_tmps_verbose" in [Yy][Ee][Ss])