Browse Source

and not or

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
907ae11233
  1. 2
      lgsm/functions/core_exit.sh

2
lgsm/functions/core_exit.sh

@ -6,7 +6,7 @@ lgsm_version="210516"
# Description: handles exiting of LGSM by running and reporting an exit code. # Description: handles exiting of LGSM by running and reporting an exit code.
if [ -n "${exitcode}" ]||[ "${exitcode}" != "0" ]; then if [ -n "${exitcode}" ]&&[ "${exitcode}" != "0" ]; then
if [ "${exitcode}" == "1" ]; then if [ "${exitcode}" == "1" ]; then
fn_script_log_fatal "Exiting with code: ${exitcode}" fn_script_log_fatal "Exiting with code: ${exitcode}"
elif [ "${exitcode}" == "2" ]; then elif [ "${exitcode}" == "2" ]; then

Loading…
Cancel
Save