Skip to content

Commit

Permalink
Update parallels-desktop10.rb (Homebrew#3174)
Browse files Browse the repository at this point in the history
Update parallels-desktop10 to use `system_command`.
  • Loading branch information
miccal committed Jan 24, 2017
1 parent ea1bf45 commit e1fb0f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Casks/parallels-desktop10.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
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: [
Expand Down

0 comments on commit e1fb0f1

Please sign in to comment.