From 302f8e79aad29181daab5539450e55c8501e698e Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Wed, 25 Mar 2020 13:33:29 +0100 Subject: [PATCH] Small fixes --- opt/hc/lib/core/include_data.sh | 2 +- .../platform/exadata/check_exadata_zfs_share_replication.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/opt/hc/lib/core/include_data.sh b/opt/hc/lib/core/include_data.sh index 12c7fda..6d7d239 100755 --- a/opt/hc/lib/core/include_data.sh +++ b/opt/hc/lib/core/include_data.sh @@ -625,7 +625,7 @@ function data_expand_numerical_range { (( ARG_DEBUG > 0 && ARG_DEBUG_LEVEL > 0 )) && set "${DEBUG_OPTS}" typeset _NUM_LIST="" -typeset _HAS_LEAD_ZERO=${2:0} +typeset _HAS_LEAD_ZERO=${2:-0} case "${1}" in *-*) diff --git a/opt/hc/lib/platform/exadata/check_exadata_zfs_share_replication.sh b/opt/hc/lib/platform/exadata/check_exadata_zfs_share_replication.sh index 7875c7e..31da16e 100755 --- a/opt/hc/lib/platform/exadata/check_exadata_zfs_share_replication.sh +++ b/opt/hc/lib/platform/exadata/check_exadata_zfs_share_replication.sh @@ -21,7 +21,8 @@ # EXPECTS: see _show_usage() # REQUIRES: data_comma2space(), data_contains_string(), data_expand_numerical_range(), # data_get_lvalue_from_config(), data_has_newline(), data_is_numeric(), -# dump_logs(), init_hc(), linux_exec_ssh(), log_hc(), warn() +# data_lc(), data_strip_space(), dump_logs(), init_hc(), linux_exec_ssh(), +# log_hc(), warn() # # @(#) HISTORY: # @(#) 2019-02-18: initial version [Patrick Van der Veken] @@ -291,7 +292,7 @@ do _REPLICATION_HOURS="${_HOUR}" else # expand range with leading zeroes - _REPLICATION_HOURS=$(data_expand_numerical_range "${_CFG_REPLICATION_HOURS}" 1) + _REPLICATION_HOURS=$(data_expand_numerical_range "${_CFG_REPLICATION_HOURS}" fi # perform checks