Daniel Gibbs il y a 10 ans
Parent
commit
a7ac7adfa2
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      lgsm/functions/core_exit.sh

+ 2 - 2
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}"