doubledash hygiene for external cmd: launchctl
This commit is contained in:
parent
d8a7e5aad9
commit
0b1814979e
|
@ -74,7 +74,7 @@ class Cask::Artifact::Pkg < Cask::Artifact::Base
|
|||
[false, true].each do |with_sudo|
|
||||
xml_status = @command.run('/bin/launchctl', :args => ['list', '-x', service], :sudo => with_sudo)
|
||||
if %r{^<\?xml}.match(xml_status)
|
||||
@command.run!('/bin/launchctl', :args => ['remove', service], :sudo => with_sudo)
|
||||
@command.run!('/bin/launchctl', :args => ['remove', '--', service], :sudo => with_sudo)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue