Revert "simplify"
This reverts commit 2369a58665d151035cb8047343a10fb9e0f40806.
This commit is contained in:
parent
2369a58665
commit
873954cb71
@ -1704,8 +1704,13 @@ 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 }, *commands, shell_parameter)
|
script_path.write Utils.safe_popen_read({ "SHELL" => shell.to_s }, *popen_read_args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user