From ec41f66ee7771cf74f840ce60239ac968e55a535 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 17 Jul 2024 05:27:05 +0100 Subject: [PATCH] cask/artifact/installer: reset UID when running scripts --- Library/Homebrew/cask/artifact/installer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/artifact/installer.rb b/Library/Homebrew/cask/artifact/installer.rb index b8ff7e405a..76b18abb3d 100644 --- a/Library/Homebrew/cask/artifact/installer.rb +++ b/Library/Homebrew/cask/artifact/installer.rb @@ -35,9 +35,10 @@ module Cask 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