use doubledash and full paths in crosspack-avr.rb

for external commands
This commit is contained in:
Roland Walker 2014-05-14 08:49:32 -04:00
parent 32fa17c975
commit bfef52615f
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class CrosspackAvr < Cask
sha256 '959f9bf00429a0e46e649a14d7891cb4086c9cf2d032d9f66899d6efbb628f6e'
install 'CrossPack-AVR.pkg'
after_uninstall do
IO.popen('yes | sudo -E /usr/local/CrossPack-AVR/uninstall && sudo pkgutil --forget at.obdev.CrossPack-AVR', 'r+') do |pipe|
IO.popen('/usr/bin/yes | /usr/bin/sudo -E -- /usr/local/CrossPack-AVR/uninstall && /usr/bin/sudo -- /usr/sbin/pkgutil --forget at.obdev.CrossPack-AVR', 'r+') do |pipe|
pipe.close_write
while line = pipe.gets
puts line