Fix for log_healthy
This commit is contained in:
parent
af81b7eb67
commit
0f6778e863
@ -148,8 +148,11 @@ then
|
|||||||
then
|
then
|
||||||
if (( $(grep -c -E -e "${_OE_VERSION}.*Operating Environment" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
|
if (( $(grep -c -E -e "${_OE_VERSION}.*Operating Environment" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
|
||||||
then
|
then
|
||||||
_MSG="required OE with version ${_OE_VERSION} is installed"
|
if (( _LOG_HEALTHY > 0 ))
|
||||||
log_hc "$0" 0 "${_MSG}"
|
then
|
||||||
|
_MSG="required OE with version ${_OE_VERSION} is installed"
|
||||||
|
log_hc "$0" 0 "${_MSG}"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
_MSG="required OE with version ${_OE_VERSION} is not installed"
|
_MSG="required OE with version ${_OE_VERSION} is not installed"
|
||||||
log_hc "$0" 1 "${_MSG}"
|
log_hc "$0" 1 "${_MSG}"
|
||||||
@ -190,8 +193,11 @@ then
|
|||||||
do
|
do
|
||||||
if (( $(grep -c "${_PATCH}" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
|
if (( $(grep -c "${_PATCH}" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
|
||||||
then
|
then
|
||||||
_MSG="required patch ${_PATCH} is installed"
|
if (( _LOG_HEALTHY > 0 ))
|
||||||
log_hc "$0" 0 "${_MSG}"
|
then
|
||||||
|
_MSG="required patch ${_PATCH} is installed"
|
||||||
|
log_hc "$0" 0 "${_MSG}"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
_MSG="required patch ${_PATCH} is not installed"
|
_MSG="required patch ${_PATCH} is not installed"
|
||||||
log_hc "$0" 1 "${_MSG}"
|
log_hc "$0" 1 "${_MSG}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user