aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-01-01 21:36:28 -0500
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-01-01 21:36:28 -0500
commit69500d1e1dc6280dd8d430366a8402732072c951 (patch)
tree3396301388ba94b1febb5102ab10dc68ae3d6c63
parent68fb5580289de982a562e49795e3184607689768 (diff)
check for dependencies before installing
-rwxr-xr-xdeploy.sh12
1 files changed, 12 insertions, 0 deletions
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