From fa903b650f4142103e374ffe827b54b633b13742 Mon Sep 17 00:00:00 2001 From: mj Date: Sun, 15 Feb 2015 20:22:12 +0100 Subject: [PATCH] IMP tools/install.sh --- tools/install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 596b6cc..17ba439 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -10,8 +10,10 @@ fi echo "\033[0;34mCloning Zsh Config...\033[0m" hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { - echo "git not installed" - exit + echo "can't clone repo.. trying to pull" + hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { + echo "can't pull, either.. giving up.." + } } echo "\033[0;34mLooking for an existing zsh config...\033[0m" @@ -21,7 +23,7 @@ if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then fi echo "\033[0;34mUsing the Zsh Config template file and adding it to ~/.zshrc\033[0m" -ln -s $ZCNF/templates/zshrc ~/.zshrc +cp $ZCNF/templates/zshrc ~/.zshrc ln -s $ZCNF/templates/bash_aliases ~/.bash_aliases sed -i -e "/^export ZSH=/ c\\ export ZSH=$ZSH -- 2.0.0