Merge pull request #33899 from Scony/fix-script-check-only-exit-code
godot exit code improvement for --script --check-only, fixes #33895
This commit is contained in:
commit
7e27ac98da
1 changed files with 3 additions and 0 deletions
|
@ -1517,6 +1517,9 @@ bool Main::start() {
|
|||
ERR_FAIL_COND_V_MSG(script_res.is_null(), false, "Can't load script: " + script);
|
||||
|
||||
if (check_only) {
|
||||
if (!script_res->is_valid()) {
|
||||
OS::get_singleton()->set_exit_code(1);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue