Commit 1b17747a authored by Kyle Fuller's avatar Kyle Fuller

Merge pull request #3506 from dbarden/installer_broken_symlink

[Installer] Check for regular file on lock
parents 5620fd41 fabc75b4
......@@ -15,6 +15,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
* C++ source files with `.cc` extension now have their compiler flags set correctly.
[Chongyu Zhu](https://github.com/lembacon)
* Handle broken symlinks when installing a Pod.
[Daniel Barden](https://github.com/dbarden)
[#3515](https://github.com/cocoapods/cocoapods/issues/3515)
## 0.37.0
......
......@@ -103,7 +103,7 @@ module Pod
# We don't want to lock diretories, as that forces you to override
# those permissions if you decide to delete the Pods folder.
Dir.glob(root + '**/*').each do |file|
unless File.directory?(file)
if File.file?(file)
File.chmod(0444, file)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment