From 69500d1e1dc6280dd8d430366a8402732072c951 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 1 Jan 2011 21:36:28 -0500 Subject: check for dependencies before installing --- deploy.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deploy.sh b/deploy.sh index 4f55677..1f220ca 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,6 +2,18 @@ set -e +# check for dependencies +echo "Checking for dependencies" +echo " oh-my-zsh..." +if [ ! -e ~/.oh-my-zsh/lib ]; then + echo " not found!" + exit 1 +fi +if [ ! -e ~/.oh-my-zsh/themes ]; then + echo " not found!" + exit 1 +fi + # template git profile echo "enter your global git user name:" read name -- cgit v1.2.3