Skip to content

Commit

Permalink
Merge pull request #15880 from MikeMcQuaid/more_service_quoting
Browse files Browse the repository at this point in the history
service: handle quoting in service file, too.
  • Loading branch information
MikeMcQuaid committed Aug 16, 2023
2 parents 3a63622 + 6cb8f3d commit e475de2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ def to_systemd_unit
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"}"
Expand Down

0 comments on commit e475de2

Please sign in to comment.