Check if tmutil is available before using it. (It’s not available on Snow Leopard.)

This commit is contained in:
Mathias Bynens
2011-09-24 11:26:15 +03:00
parent ba9b8b8a75
commit 439e6f5ade
Vendored
+1 -1
View File
@@ -141,7 +141,7 @@ rm ~/Library/Application\ Support/Dock/*.db
chflags nohidden ~/Library
# Disable local Time Machine backups
sudo tmutil disablelocal
hash tmutil &> /dev/null && sudo tmutil disablelocal
# Kill affected applications
for app in Safari Finder Dock Mail; do killall "$app"; done