From f6878e12f0102b6a4846349a3f2a650df3959af9 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Tue, 24 Jan 2017 13:59:41 +0800 Subject: [PATCH] Update adobe-photoshop-lightroom600.rb (#3184) Update adobe-photoshop-lightroom600 to use `system_command`. --- Casks/adobe-photoshop-lightroom600.rb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Casks/adobe-photoshop-lightroom600.rb b/Casks/adobe-photoshop-lightroom600.rb index e06b91f979bd8a..0893449219b55b 100644 --- a/Casks/adobe-photoshop-lightroom600.rb +++ b/Casks/adobe-photoshop-lightroom600.rb @@ -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'