diff options
author | Pawel Lampe <pawel.lampe@gmail.com> | 2021-10-21 20:34:43 +0200 |
---|---|---|
committer | Pawel Lampe <pawel.lampe@gmail.com> | 2021-10-21 20:44:24 +0200 |
commit | 75ae3164a415c84cda6ff2b0c6ee6d57d777f73a (patch) | |
tree | 63818e15d2f24c8fe6b74447aea74c17a5df162b /main | |
parent | bbcf8ac672e4176dc7e52674b9c6a6e973aeb049 (diff) |
Fix exit code for --script --check-only, fixes #54087
this commit makes godot executable to return zero exit code
once a valid script is passed via --script during --check-only
Diffstat (limited to 'main')
-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; } |