diff options
author | brian <brian@FreeBSD.org> | 2000-12-24 03:22:45 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-12-24 03:22:45 +0000 |
commit | d756562577e8b141634ac47c750c15faf6e1646d (patch) | |
tree | 6cd0e8c02002b296f19d418af7f7e14f4f213e10 /etc/periodic | |
parent | 7614d311576830ce8a1bd1f65abf62cd52c711fa (diff) | |
download | FreeBSD-src-d756562577e8b141634ac47c750c15faf6e1646d.zip FreeBSD-src-d756562577e8b141634ac47c750c15faf6e1646d.tar.gz |
Handle multiple words in $daily_clean_disks_files
PR: 23805
Submitted mostly by: Norbert Papke <npapke@telus.net>
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/daily/100.clean-disks | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/periodic/daily/100.clean-disks b/etc/periodic/daily/100.clean-disks index 16255bd..b12da6d 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]) |