diff --git a/install.zsh b/install.zsh index c0e370c..20cc250 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 @@ -130,6 +130,7 @@ function at-repos-social-app-write() { grep -R public.api.${host} .|cut -d : -f 1|sort -u|xargs sed -i "s/public.api.${host}/bsky.${host}/g" grep -R api.${host} .|cut -d : -f 1|sort -u|xargs sed -i "s/api.${host}/bsky.${host}/g" grep -R events.${host} .|cut -d : -f 1|sort -u|xargs sed -i "s/events.${host}/events.bsky.app/g" + grep -R public.bsky.${host} .|cut -d : -f 1|sort -u|xargs sed -i "s/public.bsky.${host}/bsky.${host}/g" f=$dt/view/icons/Logotype.tsx o=$d/icons/Logotype.tsx