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