Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2011 19:33:03 +0000 (UTC)
From:      Josh Paetzel <jpaetzel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223117 - head/etc/periodic/daily
Message-ID:  <201106151933.p5FJX3bw095307@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jpaetzel
Date: Wed Jun 15 19:33:02 2011
New Revision: 223117
URL: http://svn.freebsd.org/changeset/base/223117

Log:
  Eliminate extraneous pipelines and tr calls.
  
  Approved by:	kib (mentor)
  MFC after:	3 days

Modified:
  head/etc/periodic/daily/800.scrub-zfs

Modified: head/etc/periodic/daily/800.scrub-zfs
==============================================================================
--- head/etc/periodic/daily/800.scrub-zfs	Wed Jun 15 19:15:50 2011	(r223116)
+++ head/etc/periodic/daily/800.scrub-zfs	Wed Jun 15 19:33:02 2011	(r223117)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106151933.p5FJX3bw095307>