Daniel Gibbs 10 سال پیش
والد
کامیت
a7ac7adfa2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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}"