[Android] Check if keyStore path is empty

In `godot-build-scripts`, the default `config.sh` sets `GODOT_ANDROID_SIGN_KEYSTORE` to an empty string but we were only checking if it's null.
This commit is contained in:
Raul Santos
2024-08-28 17:24:54 +02:00
parent e3550cb20f
commit efe5f988e0

View File

@ -36,7 +36,7 @@ ext {
// Return the keystore file used for signing the release build.
getGodotKeystoreFile = { ->
def keyStore = System.getenv("GODOT_ANDROID_SIGN_KEYSTORE")
if (keyStore == null) {
if (keyStore == null || keyStore.isEmpty()) {
return null
}
return file(keyStore)