Browse Source

Merge pull request #54090 from Scony/fix-exit-code-on-check-only

Rémi Verschelde 3 years ago
parent
commit
6ef38d2f2f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main/main.cpp

+ 2 - 0
main/main.cpp

@@ -2072,6 +2072,8 @@ bool Main::start() {
 		if (check_only) {
 			if (!script_res->is_valid()) {
 				OS::get_singleton()->set_exit_code(EXIT_FAILURE);
+			} else {
+				OS::get_singleton()->set_exit_code(EXIT_SUCCESS);
 			}
 			return false;
 		}