fix: fix unexpected end-of-input error (#2)

This commit is contained in:
Malo Léon 2023-04-26 17:04:24 +02:00
parent 0a004a595c
commit 87a5b0f809

View File

@ -58,7 +58,7 @@ module Fastlane
# Parse credential file
def parseIosCredentials(ios_directory)
if File.exists?("#{ios_directory}/ios_crendentials.json")
if File.exist?("#{ios_directory}/ios_crendentials.json")
# Read file and decrypt it
file = File.read("#{ios_directory}/ios_crendentials.json")
JSON.parse(file)
@ -66,6 +66,7 @@ module Fastlane
else
UI.error("❌ Ios credentials doesn't exist")
puts("json file doesn't exist")
end
end
end
end