Only wrap multi-word arguments, add comment
This commit is contained in:
parent
632b96780f
commit
0c6266ee60
@ -37,7 +37,9 @@ class Caveats
|
||||
|
||||
if f.plist_manual || f.service?
|
||||
command = if f.service?
|
||||
f.service.command.map { |arg| "'#{arg}'" }.join(" ")
|
||||
f.service.command
|
||||
.map { |arg| (arg =~ /\s/) ? "'#{arg}'" : arg } # wrap multi-word arguments in quotes
|
||||
.join(" ")
|
||||
else
|
||||
f.plist_manual
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user