Merge pull request #15880 from MikeMcQuaid/more_service_quoting
service: handle quoting in service file, too.
This commit is contained in:
commit
e475de2a4a
@ -484,7 +484,8 @@ module Homebrew
|
|||||||
EOS
|
EOS
|
||||||
|
|
||||||
# command needs to be first because it initializes all other values
|
# 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 = []
|
||||||
options << "Type=#{(@launch_only_once == true) ? "oneshot" : "simple"}"
|
options << "Type=#{(@launch_only_once == true) ? "oneshot" : "simple"}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user