Skip to content

Commit

Permalink
Update adobe-photoshop-lightroom600.rb (Homebrew#3184)
Browse files Browse the repository at this point in the history
Update adobe-photoshop-lightroom600 to use `system_command`.
  • Loading branch information
miccal committed Jan 24, 2017
1 parent b623e48 commit f6878e1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Casks/adobe-photoshop-lightroom600.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@
# and https://github.com/caskroom/homebrew-versions/pull/296

preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.install.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.install.xml"
],
sudo: true
end

uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.remove.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.remove.xml"
],
sudo: true
end

uninstall delete: '/Applications/Adobe Lightroom/Adobe Lightroom.app'
Expand Down

0 comments on commit f6878e1

Please sign in to comment.