Merge pull request #54090 from Scony/fix-exit-code-on-check-only

This commit is contained in:
Rémi Verschelde 2021-10-22 12:43:32 +02:00 committed by GitHub
commit 6ef38d2f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}