Skip to content

Commit

Permalink
cask/quarantine: don't try to sudo during tests.
Browse files Browse the repository at this point in the history
Fixes #15958
  • Loading branch information
MikeMcQuaid committed Sep 5, 2023
1 parent 9677a9a commit bd0ab0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/quarantine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def self.copy_xattrs(from, to)
from,
to,
],
sudo: !to.writable?,
sudo: ENV["HOMEBREW_TESTS"].blank? && !to.writable?,
)
end

Expand Down

0 comments on commit bd0ab0b

Please sign in to comment.