fix pds version
This commit is contained in:
parent
c6ccde30cb
commit
94d11e805a
@ -27,13 +27,25 @@ function at-unset() {
|
|||||||
unset t password token refresh
|
unset t password token refresh
|
||||||
}
|
}
|
||||||
|
|
||||||
function at-version() {
|
function at-version-json() {
|
||||||
latest=`curl -sL https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/packages/pds/package.json |jq -r .version`
|
latest=`curl -sL https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/packages/pds/package.json |jq -r .version`
|
||||||
echo latest: $latest
|
echo "["
|
||||||
echo $host
|
echo "{\"latest\":\"$latest\"},"
|
||||||
curl -sL ${host}/xrpc/_health |jq .
|
e=${pds_list[@]: -1}
|
||||||
echo syu.is
|
echo "["
|
||||||
curl -sL syu.is/xrpc/_health |jq .
|
for i in $pds_list; do
|
||||||
|
t=`curl -sL ${i}/xrpc/_health |jq -r .version`
|
||||||
|
echo "{\"$i\":\"$t\"}"
|
||||||
|
if [ "$e" != "$i" ];then
|
||||||
|
echo ,
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "]"
|
||||||
|
echo "]"
|
||||||
|
}
|
||||||
|
|
||||||
|
function at-version() {
|
||||||
|
at-version-json |jq .
|
||||||
}
|
}
|
||||||
|
|
||||||
function at-uri() {
|
function at-uri() {
|
||||||
|
@ -37,3 +37,4 @@ github=(
|
|||||||
https://github.com/did-method-plc/did-method-plc
|
https://github.com/did-method-plc/did-method-plc
|
||||||
)
|
)
|
||||||
tag=( at bsky bsync pds bgs plc ozone feed jetstream social-app oauth )
|
tag=( at bsky bsync pds bgs plc ozone feed jetstream social-app oauth )
|
||||||
|
pds_list=(bsky.social syu.is boobee.blue socl.is )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user