Skip to content

Commit

Permalink
Merge pull request #1303 from fwcd/fix-podfile-exist
Browse files Browse the repository at this point in the history
Use singular `File.exist?` alias in Podfile
  • Loading branch information
Ivansss authored Jul 14, 2023
2 parents fcf69b6 + 2eb8329 commit 9ae7ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pre_install do |installer|
dir_af = File.join(installer.sandbox.pod_dir('AFNetworking'), 'UIKit+AFNetworking')
Dir.foreach(dir_af) {|x|
real_path = File.join(dir_af, x)
if (!File.directory?(real_path) && File.exists?(real_path))
if (!File.directory?(real_path) && File.exist?(real_path))
if((x.start_with?('UIWebView') || x == 'UIKit+AFNetworking.h'))
File.delete(real_path)
puts 'delete:'+ x
Expand Down

0 comments on commit 9ae7ea1

Please sign in to comment.