Skip to content

Commit

Permalink
cask/artifact/installer: reset UID when running scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Jul 17, 2024
1 parent e3cce7b commit e0278f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/cask/artifact/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ def install_phase(command: nil, **_)
command.run!(
executable_path,
**args,
env: { "PATH" => PATH.new(
env: { "PATH" => PATH.new(
HOMEBREW_PREFIX/"bin", HOMEBREW_PREFIX/"sbin", ENV.fetch("PATH")
) },
reset_uid: true,
)
end
end
Expand Down

0 comments on commit e0278f3

Please # to comment.