You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
godot exit code improvement for --script --check-only, fixes #33895
this commit causes godot executable to return non-zero exit code once invalid script is passed via --script during --check-only
This commit is contained in:
@@ -1517,6 +1517,9 @@ bool Main::start() {
|
|||||||
ERR_FAIL_COND_V_MSG(script_res.is_null(), false, "Can't load script: " + script);
|
ERR_FAIL_COND_V_MSG(script_res.is_null(), false, "Can't load script: " + script);
|
||||||
|
|
||||||
if (check_only) {
|
if (check_only) {
|
||||||
|
if (!script_res->is_valid()) {
|
||||||
|
OS::get_singleton()->set_exit_code(1);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user