diff --git a/Casks/alfred.rb b/Casks/alfred.rb index 63d24efc6f..745d5623df 100644 --- a/Casks/alfred.rb +++ b/Casks/alfred.rb @@ -10,7 +10,6 @@ cask :v1 => 'alfred' do app 'Alfred 2.app/Contents/Preferences/Alfred Preferences.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.runningwithcrayons.alfred-2', 'suppressMoveToApplications', '-bool', 'true' + suppress_move_to_applications :key => 'suppressMoveToApplications' end end diff --git a/Casks/path-finder.rb b/Casks/path-finder.rb index 34475abab6..f2b463581f 100644 --- a/Casks/path-finder.rb +++ b/Casks/path-finder.rb @@ -9,8 +9,7 @@ cask :v1 => 'path-finder' do app 'Path Finder.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.cocoatech.PathFinder', 'kNTMoveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications :key => 'kNTMoveToApplicationsFolderAlertSuppress' end zap :delete => [