Fixes
This commit is contained in:
parent
835189facf
commit
04b5e8f8e5
@ -30,7 +30,7 @@
|
|||||||
# RETURNS: 0
|
# RETURNS: 0
|
||||||
function version_include_data
|
function version_include_data
|
||||||
{
|
{
|
||||||
typeset _VERSION="2020-03-06" # YYYY-MM-DD
|
typeset _VERSION="2020-12-27" # YYYY-MM-DD
|
||||||
|
|
||||||
print "INFO: $0: ${_VERSION#version_*}"
|
print "INFO: $0: ${_VERSION#version_*}"
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ typeset _PARAMETER="${1}"
|
|||||||
typeset _LVALUE=""
|
typeset _LVALUE=""
|
||||||
typeset _RC=0
|
typeset _RC=0
|
||||||
|
|
||||||
_LVALUE=$(grep -i "^${_PARAMETER} *=" ${_CONFIG_FILE} | cut -f2- -d'=')
|
_LVALUE=$(grep -i "^${_PARAMETER} *=" "${_CONFIG_FILE}" | cut -f2- -d'=')
|
||||||
|
|
||||||
if [[ -n "${_LVALUE}" ]]
|
if [[ -n "${_LVALUE}" ]]
|
||||||
then
|
then
|
||||||
@ -637,7 +637,7 @@ case "${1}" in
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
# check if X < Y
|
# check if X < Y
|
||||||
if $(print "${1}" | awk -F '-' '{ if ($1 < $2) { exit 1 }}' 2>/dev/null)
|
if print "${1}" | awk -F '-' '{ if ($1 < $2) { exit 1 }}' 2>/dev/null
|
||||||
then
|
then
|
||||||
(( ARG_DEBUG > 0 )) && debug "in range $1 operator Y is smaller or equal to operator Y"
|
(( ARG_DEBUG > 0 )) && debug "in range $1 operator Y is smaller or equal to operator Y"
|
||||||
return 1
|
return 1
|
||||||
@ -995,7 +995,7 @@ case "${1}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
print "${_HOURS}"
|
print "${_DAYS}"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -1111,7 +1111,6 @@ print "${_SECONDS}"
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#******************************************************************************
|
#******************************************************************************
|
||||||
# END of script
|
# END of script
|
||||||
#******************************************************************************
|
#******************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user