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.
This commit is contained in:
aristidesfl
2012-04-27 05:38:59 +02:00
parent 3cf002e726
commit d2b0cd8853
Vendored
+1 -1
View File
@@ -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