fix scpt
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
function at-env() {
|
||||
pds=bsky.social
|
||||
plc=plc.directory
|
||||
host=https://bsky.social
|
||||
handle_syui=syui.ai
|
||||
handle_yui=yui.syui.ai
|
||||
@ -39,18 +41,17 @@ function at-version-env() {
|
||||
;;
|
||||
*)
|
||||
tag=pds
|
||||
list=( bsky.social syu.is boobee.blue socl.is )
|
||||
list=( bsky.social syu.is socl.is )
|
||||
;;
|
||||
esac
|
||||
title="atproto $tag version"
|
||||
latest=https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/packages/$tag/package.json
|
||||
|
||||
latest=`curl -sL $latest |jq -r .version`
|
||||
# bgs=( bsky.network bgs.syu.is )
|
||||
# plc=( plc.directory plc.syu.is )
|
||||
}
|
||||
|
||||
function at-version-json() {
|
||||
latest=`curl -sL $latest |jq -r .version`
|
||||
echo "[{\"title\":\"$title\",\"latest\":\"$latest\"},["
|
||||
e=${list[@]: -1}
|
||||
for i in $list; do
|
||||
@ -64,8 +65,8 @@ function at-version-json() {
|
||||
}
|
||||
|
||||
function at-version() {
|
||||
at-version-env $1
|
||||
at-version-json |jq .
|
||||
at-version-env
|
||||
at-version-json|jq .
|
||||
}
|
||||
|
||||
function at-uri() {
|
||||
|
Reference in New Issue
Block a user