fix
This commit is contained in:
parent
ee92b41380
commit
84f95c31ef
16
install.zsh
16
install.zsh
@ -18,10 +18,12 @@ function at-repos-env() {
|
||||
)
|
||||
d=${0:a:h}
|
||||
dh=${0:a:h:h}
|
||||
f=~/.config/atproto/token.json
|
||||
name=${host%%.*}
|
||||
domain=${host##*.}
|
||||
}
|
||||
|
||||
function at-repos-json() {
|
||||
f=~/.config/atproto/token.json
|
||||
j="{
|
||||
\"did\": \"did:plc:6qyecktefllvenje24fcxnie\",
|
||||
\"didDoc\": {
|
||||
@ -43,6 +45,7 @@ function at-repos-json() {
|
||||
}
|
||||
|
||||
function at-repos-token() {
|
||||
at-repos-json
|
||||
if [ -z "$host" ] && [ -f $f ];then
|
||||
host=`cat $f|jq -r ".didDoc.service.[].serviceEndpoint"`
|
||||
handle=`cat $f|jq -r ".handle"`
|
||||
@ -119,11 +122,6 @@ function at-repos-social-app-write() {
|
||||
grep -R $did_admin .|cut -d : -f 1|sort -u|xargs sed -i "s/${did_admin}/${did}/g"
|
||||
}
|
||||
|
||||
function at-repos-docker() {
|
||||
cd $d
|
||||
docker compose build && docker compose up -d
|
||||
}
|
||||
|
||||
function at-repos-bsky-patch() {
|
||||
f=$d/repos/atproto/services/bsky/api.js
|
||||
curl -sL https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/bsky/api.js -o $f
|
||||
@ -138,8 +136,12 @@ function at-repos-bsky-patch() {
|
||||
popd
|
||||
}
|
||||
|
||||
function at-repos-docker() {
|
||||
cd $d
|
||||
docker compose build && docker compose up -d
|
||||
}
|
||||
|
||||
at-repos-env
|
||||
at-repos-token
|
||||
at-repos-clone
|
||||
at-repos-pull
|
||||
at-repos-social-app-icon
|
||||
|
Loading…
x
Reference in New Issue
Block a user