You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +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
(cherry picked from commit 75ae3164a4)
This commit is contained in:
committed by
Rémi Verschelde
parent
378ca68dc1
commit
cc0479a17e
@@ -1681,7 +1681,9 @@ bool Main::start() {
|
|||||||
|
|
||||||
if (check_only) {
|
if (check_only) {
|
||||||
if (!script_res->is_valid()) {
|
if (!script_res->is_valid()) {
|
||||||
OS::get_singleton()->set_exit_code(1);
|
OS::get_singleton()->set_exit_code(EXIT_FAILURE);
|
||||||
|
} else {
|
||||||
|
OS::get_singleton()->set_exit_code(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user