Fix for log_healthy

This commit is contained in:
Patrick Van der Veken 2018-10-22 10:02:14 +02:00
parent af81b7eb67
commit 0f6778e863

View File

@ -147,9 +147,12 @@ then
if (( $? == 0 ))
then
if (( $(grep -c -E -e "${_OE_VERSION}.*Operating Environment" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
then
if (( _LOG_HEALTHY > 0 ))
then
_MSG="required OE with version ${_OE_VERSION} is installed"
log_hc "$0" 0 "${_MSG}"
fi
else
_MSG="required OE with version ${_OE_VERSION} is not installed"
log_hc "$0" 1 "${_MSG}"
@ -189,9 +192,12 @@ then
for _PATCH in ${_PATCHES}
do
if (( $(grep -c "${_PATCH}" ${HC_STDOUT_LOG} 2>/dev/null) > 0 ))
then
if (( _LOG_HEALTHY > 0 ))
then
_MSG="required patch ${_PATCH} is installed"
log_hc "$0" 0 "${_MSG}"
fi
else
_MSG="required patch ${_PATCH} is not installed"
log_hc "$0" 1 "${_MSG}"