aboutsummaryrefslogtreecommitdiffstats
path: root/.osx
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-09-24 11:26:15 +0300
committerMathias Bynens <mathias@qiwi.be>2011-09-24 11:26:15 +0300
commit439e6f5ade515c4f776c8d119d37616debf54509 (patch)
treee2c26cc6223896a2df9cba9b55de39c40e645efb /.osx
parentba9b8b8a75e028d452cb96e11db08ca7b9e958eb (diff)
downloaddotfiles-439e6f5ade515c4f776c8d119d37616debf54509.tar.gz
dotfiles-439e6f5ade515c4f776c8d119d37616debf54509.tar.bz2
dotfiles-439e6f5ade515c4f776c8d119d37616debf54509.zip
Check if `tmutil` is available before using it. (It’s not available on Snow Leopard.)
Diffstat (limited to '.osx')
-rwxr-xr-x.osx2
1 files changed, 1 insertions, 1 deletions
diff --git a/.osx b/.osx
index 27a61ac..268dc3d 100755
--- a/.osx
+++ b/.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