diff --git a/Casks/parallels-desktop11.rb b/Casks/parallels-desktop11.rb index f345e3d27..ed8b8559b 100644 --- a/Casks/parallels-desktop11.rb +++ b/Casks/parallels-desktop11.rb @@ -10,12 +10,14 @@ cask 'parallels-desktop11' do postflight do # 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 - system '/usr/bin/sudo', '-E', '--', - "#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool", - 'init', '-b', "#{appdir}/Parallels Desktop.app" + system_command "#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool", + args: ['init', '-b', "#{appdir}/Parallels Desktop.app"], + sudo: true end uninstall_preflight do