Skip to content
Browse files

Check if `tmutil` is available before using it. (It’s not available o…

…n Snow Leopard.)
  • Loading branch information...
1 parent ba9b8b8 commit 439e6f5ade515c4f776c8d119d37616debf54509 @mathiasbynens committed Sep 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 .osx
2 .osx
@@ -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

0 comments on commit 439e6f5

Please sign in to comment.
Something went wrong with that request. Please try again.