From ebe3f9b204adfae2e51e77eb126430e2d0e8cfdd Mon Sep 17 00:00:00 2001 From: Andrew Vit Date: Wed, 9 Nov 2011 16:58:45 -0800 Subject: [PATCH] Allow (re)installing from local repo --- tools/install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 6ecb4e861..998bf5163 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -5,15 +5,12 @@ then ZSH=~/.oh-my-zsh fi -if [ -d $ZSH ] +if [ ! -d $ZSH ] then - echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove $ZSH if you want to install" - exit + echo "\033[0;34mCloning Oh My Zsh...\033[0m" + /usr/bin/env git clone https://github.com/avit/oh-my-zsh.git $ZSH fi -echo "\033[0;34mCloning Oh My Zsh...\033[0m" -/usr/bin/env git clone https://github.com/avit/oh-my-zsh.git $ZSH - echo "\033[0;34mLooking for an existing zsh config...\033[0m" if [ -f ~/.zshrc ] || [ -h ~/.zshrc ] then