aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-unpack.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Contributions/cmd/brew-unpack.rb b/Library/Contributions/cmd/brew-unpack.rb
index 24cfbd419..c1ca26474 100755
--- a/Library/Contributions/cmd/brew-unpack.rb
+++ b/Library/Contributions/cmd/brew-unpack.rb
@@ -81,11 +81,7 @@ module Homebrew extend self
oh1 "Unpacking #{f.name} to: #{stage_dir}"
ENV['VERBOSE'] = '1' # show messages about tar
- f.brew do
- entries = Dir['*']
- cd entries.first if entries.length == 1 && File.directory?(entries.first)
- cp_r getwd, stage_dir
- end
+ f.brew { cp_r getwd, stage_dir }
ENV['VERBOSE'] = nil
if ARGV.switch? 'g'