From 9528c6a8ac21396be7506ba090a979366e9e7344 Mon Sep 17 00:00:00 2001 From: Max Eisner <4730112+max-ae@users.noreply.github.com> Date: Sun, 24 Jul 2022 22:50:14 +0200 Subject: [PATCH] always set SHELL env variable --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4de200ddeb..760600282a 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1660,7 +1660,7 @@ class Formula end script_path.dirname.mkpath - script_path.write Utils.safe_popen_read(binary, cmd, shell_parameter) + script_path.write Utils.safe_popen_read({ "SHELL" => shell }, binary, cmd, shell_parameter) end end