This commit is contained in:
Max Eisner 2022-08-11 20:59:51 +02:00
parent fa22a167d3
commit 2369a58665
No known key found for this signature in database
GPG Key ID: 4BF122C22879F0C8

View File

@ -1704,13 +1704,8 @@ class Formula
"#{shell_parameter_format}#{shell}" "#{shell_parameter_format}#{shell}"
end end
popen_read_args = %w[]
popen_read_args << commands
popen_read_args << shell_parameter
popen_read_args.flatten!
script_path.dirname.mkpath script_path.dirname.mkpath
script_path.write Utils.safe_popen_read({ "SHELL" => shell.to_s }, *popen_read_args) script_path.write Utils.safe_popen_read({ "SHELL" => shell.to_s }, *commands, shell_parameter)
end end
end end