Failure in local update should be die()

This commit is contained in:
Patrick Van der Veken 2015-09-09 13:22:15 +02:00
parent 34f358f7fb
commit 7d337f3185

View File

@ -46,7 +46,8 @@
# @(#) 2015-09-06: proper error checking in fix2host(), update2host() by using # @(#) 2015-09-06: proper error checking in fix2host(), update2host() by using
# @(#) logc() (VRF 1.3.0) [Patrick Van der Veken] # @(#) logc() (VRF 1.3.0) [Patrick Van der Veken]
# @(#) 2015-09-09: better handling of leading log sigils in die(), log(), logc() # @(#) 2015-09-09: better handling of leading log sigils in die(), log(), logc()
# @(#) and warn(), fix in count_fields() (VRF 1.3.1) [Patrick Van der Veken] # @(#) and warn(), fix in count_fields(), failure in local update
# @(#) should be die() (VRF 1.3.1) [Patrick Van der Veken]
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# DO NOT CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! # DO NOT CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING!
#****************************************************************************** #******************************************************************************
@ -1294,7 +1295,7 @@ case ${ARG_ACTION} in
RC="$(< ${TMP_RC_FILE})" RC="$(< ${TMP_RC_FILE})"
if (( RC )) if (( RC ))
then then
log "failed to apply SSH controls locally [RC=${RC}]" die "failed to apply SSH controls locally [RC=${RC}]"
else else
log "finished applying SSH controls locally [RC=${RC}]" log "finished applying SSH controls locally [RC=${RC}]"
fi fi