fix scpt
This commit is contained in:
parent
1873c007d4
commit
0a3852bd3b
@ -4,7 +4,7 @@ case $OSTYPE in
|
||||
alias date="/opt/homebrew/bin/gdate"
|
||||
;;
|
||||
esac
|
||||
d=${0:a:h}
|
||||
d=${0:a:h}/scpt
|
||||
source $d/env
|
||||
source $d/refresh.zsh
|
||||
source $d/token.zsh
|
@ -5,7 +5,7 @@ function refresh(){
|
||||
token
|
||||
fi
|
||||
url=https://$host/xrpc/com.atproto.server.refreshSession
|
||||
j=`curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $refresh" $url`
|
||||
j=`curl -sL -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $refresh" $url`
|
||||
echo $j
|
||||
echo $j >! $cfg.t
|
||||
}
|
||||
|
@ -25,5 +25,5 @@ json="{
|
||||
|
||||
echo $json|jq .
|
||||
url=https://$host/xrpc/com.atproto.repo.createRecord
|
||||
j=`curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token" -d "$json" $url`
|
||||
j=`curl -sL -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token" -d "$json" $url`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user