From d2b0cd88538b76c79f24d6cca8fcdeb83bb5d796 Mon Sep 17 00:00:00 2001 From: aristidesfl Date: Fri, 27 Apr 2012 05:38:59 +0200 Subject: Fix error thrown when Reseting Launchpad in some conditions When multiple *.db files existed in ~/Library/Application Support/Dock/ , [ -e ~/Library/Application\ Support/Dock/*.db ] would throw an error. --- .osx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.osx') diff --git a/.osx b/.osx index 483ec05..b6307d9 100755 --- a/.osx +++ b/.osx @@ -219,7 +219,7 @@ defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false defaults write com.apple.dashboard devmode -bool true # Reset Launchpad -[ -e ~/Library/Application\ Support/Dock/*.db ] && rm ~/Library/Application\ Support/Dock/*.db +find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete # Prevent Time Machine from prompting to use new hard drives as backup volume defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true -- cgit v1.2.3