From da5bd4cbf8731e5ec585e67aeded176ea06cdbe6 Mon Sep 17 00:00:00 2001 From: mj Date: Wed, 25 Feb 2015 02:58:46 +0100 Subject: [PATCH] install.sh: clear symlinks, too --- tools/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index ef93af4..739f5bb 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -13,14 +13,14 @@ if [ ! -n "$ZSH" ]; then fi echo "\033[0;34mCleaning...\033[0m" -if [ -d ~/.config/zsh-config ]; then - if [ -d ~/.config/zsh-config ]; then +if [ -d ~/.config/zsh-config ] || [ -h ~/.config/zsh-config ]; then + if [ -d ~/.config/zsh-config ] || [ -h ~/.config/zsh-config ]; then rm -rf ~/.config/zsh-config fi - if [ -d ~/.config/oh-my-zsh ]; then + if [ -d ~/.config/oh-my-zsh ] || [ -h ~/.config/oh-my-zsh ]; then rm -rf ~/.config/oh-my-zsh fi - if [ -d ~/.config/antigen ]; then + if [ -d ~/.config/antigen ] || [ -h ~/.config/antigen ]; then rm -rf ~/.config/antigen fi if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then -- 2.0.0