aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-08-25 10:28:40 +0100
committerMike McQuaid2014-08-26 08:30:47 +0100
commit58cb4444da8f20e4e51800af253dedeadefc0edf (patch)
tree29ba5a23464315e4713c28058d832598331be800 /Library/Homebrew/extend/pathname.rb
parent31dc3d1f429b1309af7d673beb56ed89ab6f176b (diff)
downloadbrew-58cb4444da8f20e4e51800af253dedeadefc0edf.tar.bz2
etc.install: handle recursive directory installs.
We need to install the helper module not just on `etc` but also on all subdirectories of it too. Also, handle the case where we install a subdirectory with etc.install. Closes Homebrew/homebrew#26145.
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-rw-r--r--Library/Homebrew/extend/pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 8ecff6bf4..ca1d167c1 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -48,6 +48,7 @@ class Pathname
dst = dst.to_s
dst = yield(src, dst) if block_given?
+ return unless dst
mkpath