Browse Source

Update virtualbox-extension-pack-beta.rb (#3170)

Update virtualbox-extension-pack-beta to use `system_command`.
master
Miccal Matthews 8 years ago
committed by GitHub
parent
commit
71aebc2a64
  1. 14
      Casks/virtualbox-extension-pack-beta.rb

14
Casks/virtualbox-extension-pack-beta.rb

@ -12,10 +12,20 @@ cask 'virtualbox-extension-pack-beta' do
stage_only true stage_only true
postflight do postflight do
system 'sudo', 'VBoxManage', 'extpack', 'install', '--replace', "#{staged_path}/Oracle_VM_VirtualBox_Extension_Pack-#{version.before_comma}-#{version.after_comma}.vbox-extpack" system_command '/usr/local/bin/VBoxManage',
args: [
'extpack', 'install',
'--replace', "#{staged_path}/Oracle_VM_VirtualBox_Extension_Pack-#{version.before_comma}-#{version.after_comma}.vbox-extpack"
],
sudo: true
end end
uninstall_postflight do uninstall_postflight do
system 'sudo', 'VBoxManage', 'extpack', 'uninstall', 'Oracle VM VirtualBox Extension Pack' system_command '/usr/local/bin/VBoxManage',
args: [
'extpack', 'uninstall',
'Oracle VM VirtualBox Extension Pack'
],
sudo: true
end end
end end

Loading…
Cancel
Save