Merge pull request #15880 from MikeMcQuaid/more_service_quoting

service: handle quoting in service file, too.
This commit is contained in:
Mike McQuaid 2023-08-16 14:34:39 +01:00 committed by GitHub
commit e475de2a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,7 +484,8 @@ module Homebrew
EOS
# command needs to be first because it initializes all other values
cmd = command&.join(" ")
cmd = command&.map { |arg| Utils::Shell.sh_quote(arg) }
&.join(" ")
options = []
options << "Type=#{(@launch_only_once == true) ? "oneshot" : "simple"}"