From 58cb4444da8f20e4e51800af253dedeadefc0edf Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 25 Aug 2014 10:28:40 +0100 Subject: 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. --- Library/Homebrew/extend/pathname.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Homebrew/extend') 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 -- cgit v1.2.3