From a6aefb43c57a27dd38370a55e9eba269ed8b8890 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 16 Jul 2018 20:10:22 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20recurse=20into=20nested=20direc?= =?UTF-8?q?tories.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Homebrew/unpack_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/unpack_strategy.rb b/Library/Homebrew/unpack_strategy.rb index 8274dea20a..adbcc959dc 100644 --- a/Library/Homebrew/unpack_strategy.rb +++ b/Library/Homebrew/unpack_strategy.rb @@ -81,7 +81,7 @@ class UnpackStrategy children = tmp_unpack_dir.children - if children.count == 1 + if children.count == 1 && !children.first.directory? s = self.class.detect(children.first) s.extract_nestedly(to: to, basename: basename)