summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2011-06-15 19:33:02 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2011-06-15 19:33:02 +0000
commita2524e3ed6a65d7c12e66b867f4929f7428b395e (patch)
treee0b9c07e42546a90e8f8ee6cc353d98f9c7b1181 /etc/periodic
parentba7785e90e31eac86aa7ae4ffcc9b8f9a074fd49 (diff)
downloadFreeBSD-src-a2524e3ed6a65d7c12e66b867f4929f7428b395e.zip
FreeBSD-src-a2524e3ed6a65d7c12e66b867f4929f7428b395e.tar.gz
Eliminate extraneous pipelines and tr calls.
Approved by: kib (mentor) MFC after: 3 days
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/800.scrub-zfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/800.scrub-zfs b/etc/periodic/daily/800.scrub-zfs
index f1d74e3..b153b66 100755
--- a/etc/periodic/daily/800.scrub-zfs
+++ b/etc/periodic/daily/800.scrub-zfs
@@ -46,7 +46,7 @@ case "$daily_scrub_zfs_enable" in
esac
# determine how many days shall be between scrubs
- eval _pool_threshold=\${daily_scrub_zfs_$(echo "${pool}"|tr -s "-" "_"|tr -s "." "_"|tr -s ":" "_")_threshold}
+ eval _pool_threshold=\${daily_scrub_zfs_$(echo "${pool}"|tr ".:-" "_")_threshold}
if [ -z "${_pool_threshold}" ];then
_pool_threshold=${daily_scrub_zfs_default_threshold}
fi
OpenPOWER on IntegriCloud