Fix unused exitcode in macos export plugin

Fix that the exitcode is never set.

(cherry picked from commit 567a591f87)
This commit is contained in:
Markus Sauermann 2022-11-20 22:27:23 +01:00 committed by Rémi Verschelde
parent 84904da07a
commit ccb9ffb6a3
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -814,7 +814,7 @@ Error EditorExportPlatformOSX::_code_sign(const Ref<EditorExportPreset> &p_prese
String str;
int exitcode = 0;
Error err = OS::get_singleton()->execute("codesign", args, true, NULL, &str, NULL, true);
Error err = OS::get_singleton()->execute("codesign", args, true, NULL, &str, &exitcode, true);
if (err != OK) {
add_message(EXPORT_MESSAGE_WARNING, TTR("Code Signing"), TTR("Could not start codesign executable, make sure Xcode command line tools are installed."));
return err;