From a9c070f6cdb77dc85e71eccb482aa00484f26abd Mon Sep 17 00:00:00 2001 From: cobaltcore Date: Sat, 6 Jan 2024 19:02:42 +0100 Subject: [PATCH] Fix bundle identifier logic --- src/renotize.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renotize.nim b/src/renotize.nim index e0a1b25..74765cd 100755 --- a/src/renotize.nim +++ b/src/renotize.nim @@ -252,10 +252,11 @@ proc fullRunCli*(inputFile: string, bundleIdentifier = "", keyFile = "", certFil appStoreKeyFileInt = getEnv("RN_APP_STORE_KEY_FILE") else: appStoreKeyFileInt = appStoreKeyFile - if bundleIdentifier == "": - bundleIdentifierInt = getEnv("RN_BUNDLE_IDENTIFIER") - else: - bundleIdentifierInt = bundleIdentifier + + if bundleIdentifier == "": + bundleIdentifierInt = getEnv("RN_BUNDLE_IDENTIFIER") + else: + bundleIdentifierInt = bundleIdentifier if keyFileInt == "" or certFileInt == "" or appStoreKeyFileInt == "" or bundleIdentifierInt == "": echo "No configuration data was found via command line arguments or environment."