doubledash hygiene for external cmd: launchctl

This commit is contained in:
Roland Walker 2014-01-24 20:47:40 -05:00
parent d8a7e5aad9
commit 0b1814979e
1 changed files with 1 additions and 1 deletions

View File

@ -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