Daniel Gibbs %!s(int64=10) %!d(string=hai) anos
pai
achega
a7ac7adfa2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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}"