Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

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

Merged
merged 1 commit into from
Jan 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update virtualbox-extension-pack-beta.rb
Update virtualbox-extension-pack-beta to use `system_command`.
  • Loading branch information
miccal authored Jan 24, 2017
commit aba7d17e681b6c50f91e7ab12245d067f0658f14
14 changes: 12 additions & 2 deletions Casks/virtualbox-extension-pack-beta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@
stage_only true

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

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