Daniel Gibbs před 10 roky
rodič
revize
a7ac7adfa2
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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}" == "1" ]; then
 		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}"
-	if [ "${exitcode}" == "3" ]; then
+	elif [ "${exitcode}" == "3" ]; then
 		fn_script_log_warn "Exiting with exit code: ${exitcode}"
 	else
 		fn_script_log "Exiting with exit code: ${exitcode}"