Browse Source

Update parallels-desktop11.rb (#3175)

Update parallels-desktop11 to use `system_command`.
master
Miccal Matthews 8 years ago
committed by GitHub
parent
commit
3416a2b949
  1. 10
      Casks/parallels-desktop11.rb

10
Casks/parallels-desktop11.rb

@ -10,12 +10,14 @@ cask 'parallels-desktop11' do
postflight do postflight do
# Unhide the application # Unhide the application
system '/usr/bin/sudo', '-E', '--', 'chflags', 'nohidden', "#{appdir}/Parallels Desktop.app" system_command '/usr/bin/chflags',
args: ['nohidden', "#{appdir}/Parallels Desktop.app"],
sudo: true
# Run the initialization script # Run the initialization script
system '/usr/bin/sudo', '-E', '--', system_command "#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool",
"#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool", args: ['init', '-b', "#{appdir}/Parallels Desktop.app"],
'init', '-b', "#{appdir}/Parallels Desktop.app" sudo: true
end end
uninstall_preflight do uninstall_preflight do

Loading…
Cancel
Save