diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-22 12:43:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 12:43:32 +0200 |
commit | 6ef38d2f2f29adb163934bfc690dca976d359851 (patch) | |
tree | f37c969b0500f30e2f8ee55c9b3f151869317dfe /main/main.cpp | |
parent | 119f79079bc9e380718a539221c3a236a7f16d88 (diff) | |
parent | 75ae3164a415c84cda6ff2b0c6ee6d57d777f73a (diff) |
Merge pull request #54090 from Scony/fix-exit-code-on-check-only
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index f0bc51c10f..d4a6216e35 100644 --- a/main/main.cpp +++ b/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; } |