Small fixes

This commit is contained in:
Patrick Van der Veken 2020-03-25 13:33:29 +01:00
parent 4b45ed81ed
commit 302f8e79aa
2 changed files with 4 additions and 3 deletions

View File

@ -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
*-*)

View File

@ -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