diff options
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 0edd1bd06..fd5cf67f1 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -50,6 +50,8 @@ class Pathname # and also broken symlinks are not the end of the world raise "#{src} does not exist" unless File.symlink? src or File.exist? src + dst = yield(src, dst) if block_given? + mkpath if File.symlink? src # we use the BSD mv command because FileUtils copies the target and |
