Browse Source

elif

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
a7ac7adfa2
  1. 4
      lgsm/functions/core_exit.sh

4
lgsm/functions/core_exit.sh

@ -9,9 +9,9 @@ lgsm_version="210516"
if [ "${exitcode}" != "0" ]; then if [ "${exitcode}" != "0" ]; then
if [ "${exitcode}" == "1" ]; then if [ "${exitcode}" == "1" ]; then
fn_script_log_fatal "Exiting with exit code: ${exitcode}" fn_script_log_fatal "Exiting with exit code: ${exitcode}"
if [ "${exitcode}" == "2" ]; then elif [ "${exitcode}" == "2" ]; then
fn_script_log_error "Exiting with exit code: ${exitcode}" fn_script_log_error "Exiting with exit code: ${exitcode}"
if [ "${exitcode}" == "3" ]; then elif [ "${exitcode}" == "3" ]; then
fn_script_log_warn "Exiting with exit code: ${exitcode}" fn_script_log_warn "Exiting with exit code: ${exitcode}"
else else
fn_script_log "Exiting with exit code: ${exitcode}" fn_script_log "Exiting with exit code: ${exitcode}"

Loading…
Cancel
Save