소스 검색

removed exit on pass

Daniel Gibbs 10 년 전
부모
커밋
3d507d8d73
1개의 변경된 파일9개의 추가작업 그리고 7개의 파일을 삭제
  1. 9 7
      lgsm/functions/core_exit.sh

+ 9 - 7
lgsm/functions/core_exit.sh

@@ -8,16 +8,18 @@ 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 code: ${exitcode}"
 	elif [ "${exitcode}" == "2" ]; then
 	elif [ "${exitcode}" == "2" ]; then
-		fn_script_log_error "Exiting with exit code: ${exitcode}"
+		fn_script_log_error "Exiting with code: ${exitcode}"
 	elif [ "${exitcode}" == "3" ]; then
 	elif [ "${exitcode}" == "3" ]; then
-		fn_script_log_warn "Exiting with exit code: ${exitcode}"
+		fn_script_log_warn "Exiting with code: ${exitcode}"
 	else
 	else
-		fn_script_log "Exiting with exit code: ${exitcode}"
+		fn_script_log "Exiting with code: ${exitcode}"
 	fi
 	fi
-else
-	fn_script_log_pass "Exiting with exit code: ${exitcode}"
+	exit ${exitcode}
+fi
+
+if [ -f ".dev-debug" ]; then
+	echo "Exiting with code: ${exitcode}"
 fi
 fi
 
 
-exit ${exitcode}