Eliminate extraneous pipelines and tr calls.
Approved by: kib (mentor) MFC after: 3 days
This commit is contained in:
parent
ba7785e90e
commit
a2524e3ed6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user