Merge pull request #15875 from MikeMcQuaid/service_quote_args
service: correctly quote arguments.
This commit is contained in:
commit
2038481909
@ -398,7 +398,7 @@ module Homebrew
|
||||
vars = @environment_variables.except(:PATH)
|
||||
.map { |k, v| "#{k}=\"#{v}\"" }
|
||||
|
||||
out = vars + command if command?
|
||||
out = vars + T.must(command).map { |arg| Utils::Shell.sh_quote(arg) } if command?
|
||||
out.join(" ")
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user