fix
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user