diff --git a/install.zsh b/install.zsh index bdf7297..14b5cf3 100755 --- a/install.zsh +++ b/install.zsh @@ -98,19 +98,16 @@ function at-repos-social-app-write() { dt=$d/repos/social-app/src cd $dt - f=$dt/lib/constants.ts - sed -i "s/public.api/bsky/g" $f - f=$dt/lib/strings/url-helpers.ts sed -i 's#`https://go\.bsky\.app/redirect\?u=\${encodeURIComponent(url)}`#url#g' $f - t=(api.bsky.app bsky.social bsky.app) + t=(bsky.social bsky.app) for tt in "${t[@]}"; do escaped_tt=$(echo "$tt" | sed 's/\./\\./g') - grep -R "$escaped_tt" . | cut -d : -f 1 | sort -u | xargs -r sed -i "s/${tt}/bsky.${pds}/g" + grep -R "$escaped_tt" . | cut -d : -f 1 | sort -u | xargs -r sed -i "s/${tt}/${pds}/g" done - t=(api public.api public.bsky) + t=(api public.api public.api.bsky) for tt in "${t[@]}"; do grep -R "${tt}\.${pds}" . | cut -d : -f 1 | sort -u | xargs -r sed -i "s/${tt}\.${pds}/bsky.${pds}/g" done