From d756562577e8b141634ac47c750c15faf6e1646d Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 24 Dec 2000 03:22:45 +0000 Subject: [PATCH] Handle multiple words in $daily_clean_disks_files PR: 23805 Submitted mostly by: Norbert Papke --- etc/periodic/daily/100.clean-disks | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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])