diff --git a/Library/Homebrew/unpack_strategy.rb b/Library/Homebrew/unpack_strategy.rb index 25f02de187..59451386a2 100644 --- a/Library/Homebrew/unpack_strategy.rb +++ b/Library/Homebrew/unpack_strategy.rb @@ -172,9 +172,8 @@ module UnpackStrategy next end + FileUtils.chmod_R "u+w", tmp_unpack_dir, force: true, verbose: verbose Directory.new(tmp_unpack_dir).extract(to: to, verbose: verbose) - - FileUtils.chmod_R "+w", tmp_unpack_dir, force: true, verbose: verbose end end