From e1fb0f14b0be8e280ac5e7156999f7a227780387 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Tue, 24 Jan 2017 13:43:15 +0800 Subject: [PATCH] Update parallels-desktop10.rb (#3174) Update parallels-desktop10 to use `system_command`. --- Casks/parallels-desktop10.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Casks/parallels-desktop10.rb b/Casks/parallels-desktop10.rb index b1a09d151..70d6e6cab 100644 --- a/Casks/parallels-desktop10.rb +++ b/Casks/parallels-desktop10.rb @@ -9,8 +9,10 @@ cask 'parallels-desktop10' do app 'Parallels Desktop.app' postflight do - # Set the file to visible, since it was hidden in the dmg - system '/usr/bin/SetFile', '-a', 'v', "#{appdir}/Parallels Desktop.app" + # Unhide the application + system_command '/usr/bin/chflags', + args: ['nohidden', "#{appdir}/Parallels Desktop.app"], + sudo: true end uninstall delete: [