From 00a3d0dae23be61c3387f4d236979512717fbc13 Mon Sep 17 00:00:00 2001 From: Josh Paetzel Date: Wed, 15 Jun 2011 19:33:02 +0000 Subject: [PATCH] Eliminate extraneous pipelines and tr calls. Approved by: kib (mentor) MFC after: 3 days --- etc/periodic/daily/800.scrub-zfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/daily/800.scrub-zfs b/etc/periodic/daily/800.scrub-zfs index f1d74e3ff8ce..b153b66370ec 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