Skip to content

Commit

Permalink
Redownload AppleIncRootCertificate.cer if file size is 0. (fastlane#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
QiushiZhao authored Nov 15, 2022
1 parent 5b090df commit 6240d07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.run(params)
UI.user_error!("Could not find path to project config '#{project_file_path}'. Pass the path to your project (not workspace)!") unless File.exist?(project_file_path)

# download certificate
unless File.exist?(params[:certificate])
unless File.exist?(params[:certificate]) && File.size(params[:certificate]) > 0
UI.message("Downloading root certificate from (#{ROOT_CERTIFICATE_URL}) to path '#{params[:certificate]}'")
File.open(params[:certificate], "w:ASCII-8BIT") do |file|
file.write(FastlaneCore::Helper.open_uri(ROOT_CERTIFICATE_URL, "rb").read)
Expand Down

0 comments on commit 6240d07

Please sign in to comment.