From 000b370bbd92f88b8bf6752e828bb951ea075069 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 26 Jun 2025 21:29:00 +0900 Subject: [PATCH] fix --- install.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.zsh b/install.zsh index c0e370c..4400821 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