mirror of
https://github.com/godotengine/godot
synced 2024-09-05 19:30:03 +00:00
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
This commit is contained in:
parent
bbcf8ac672
commit
75ae3164a4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue