Commit da5bd4cbf8731e5ec585e67aeded176ea06cdbe6
1 parent
0256da3376
Exists in
master
and in
2 other branches
install.sh: clear symlinks, too
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
tools/install.sh
... | ... | @@ -13,14 +13,14 @@ if [ ! -n "$ZSH" ]; then |
13 | 13 | fi |
14 | 14 | |
15 | 15 | echo "\033[0;34mCleaning...\033[0m" |
16 | -if [ -d ~/.config/zsh-config ]; then | |
17 | - if [ -d ~/.config/zsh-config ]; then | |
16 | +if [ -d ~/.config/zsh-config ] || [ -h ~/.config/zsh-config ]; then | |
17 | + if [ -d ~/.config/zsh-config ] || [ -h ~/.config/zsh-config ]; then | |
18 | 18 | rm -rf ~/.config/zsh-config |
19 | 19 | fi |
20 | - if [ -d ~/.config/oh-my-zsh ]; then | |
20 | + if [ -d ~/.config/oh-my-zsh ] || [ -h ~/.config/oh-my-zsh ]; then | |
21 | 21 | rm -rf ~/.config/oh-my-zsh |
22 | 22 | fi |
23 | - if [ -d ~/.config/antigen ]; then | |
23 | + if [ -d ~/.config/antigen ] || [ -h ~/.config/antigen ]; then | |
24 | 24 | rm -rf ~/.config/antigen |
25 | 25 | fi |
26 | 26 | if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then |