From 347bc4535fe249e231447d666961f912f9b3b6ef Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 20 Feb 2023 22:32:25 +0100 Subject: [PATCH] Fix permissions for extracted files. --- Library/Homebrew/unpack_strategy.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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