From 0256da3376cf7714ad1c670f3c329d3912e94905 Mon Sep 17 00:00:00 2001 From: mj Date: Wed, 25 Feb 2015 02:54:26 +0100 Subject: [PATCH] FIXES --- tools/install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 7aca3ed..ef93af4 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -12,11 +12,6 @@ if [ ! -n "$ZSH" ]; then ZSH=$ZCNF/tools/oh-my-zsh 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 "can't clone repo.." -} - echo "\033[0;34mCleaning...\033[0m" if [ -d ~/.config/zsh-config ]; then if [ -d ~/.config/zsh-config ]; then @@ -44,6 +39,12 @@ if [ -d ~/.config/zsh-config ]; then fi 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 "can't clone repo.." + exit 1 +} + echo "\033[0;34mUsing the Zsh Config template file and adding it to ~/.zshrc\033[0m" ln -s $ZCNF/templates/zshrc ~/.zshrc ln -s $ZCNF/templates/bashrc ~/.bashrc -- 2.0.0