From 3416a2b949f063e3b7632902bed517c46ec1ed04 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Tue, 24 Jan 2017 13:59:53 +0800 Subject: [PATCH] Update parallels-desktop11.rb (#3175) Update parallels-desktop11 to use `system_command`. --- Casks/parallels-desktop11.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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