From d9ad6b98e494f7e986351e59ecebc9121592c445 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Tue, 24 Jan 2017 13:42:36 +0800 Subject: [PATCH] Update vmware-fusion6.rb (#3171) Remove `system` command. --- Casks/vmware-fusion6.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/vmware-fusion6.rb b/Casks/vmware-fusion6.rb index 7772f20ba..ef4dd8b86 100644 --- a/Casks/vmware-fusion6.rb +++ b/Casks/vmware-fusion6.rb @@ -10,7 +10,6 @@ cask 'vmware-fusion6' do binary "#{appdir}/VMware Fusion.app/Contents/Library/vmrun" uninstall_preflight do - system '/usr/bin/sudo', '-E', '--', - '/usr/sbin/chown', '-R', '--', "#{Etc.getpwuid(Process.euid).name}:staff", "#{appdir}/VMware Fusion.app" + set_ownership "#{appdir}/VMware Fusion.app" end end