diff --git a/install.zsh b/install.zsh index c0e370c..0d2f2ac 100755 --- a/install.zsh +++ b/install.zsh @@ -63,8 +63,8 @@ function at-repos-clone() { for ((i=1; i<=${#repos}; i++)); do repo=${repos[$i]} echo $repo - if [ -d $d/repos/social-app ];then - rm -rf $d/repos/social-app + if [ -d $d/repos/$repo ] && [ "$repo" = "social-app" ];then + rm -rf $d/repos/$repo fi if [ ! -d $d/repos/${repo##*/} ];then git clone $repo