fix
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
#!/bin/zsh
|
||||
|
||||
function at_env_arg() {
|
||||
host=syu.is
|
||||
handle=ai.syui.ai
|
||||
col=ai.syui.verse.user
|
||||
host=syu.is
|
||||
}
|
||||
|
||||
function at_env() {
|
||||
|
||||
if [ -n "$1" ];then
|
||||
handle=$1
|
||||
fi
|
||||
if [ -n "$2" ];then
|
||||
col=$2
|
||||
fi
|
||||
|
||||
d=${0:a:h}
|
||||
cd $d
|
||||
dd=${0:a:h:h}
|
||||
@@ -21,7 +29,7 @@ function at_env() {
|
||||
refresh=`cat $f|jq -r .refreshJwt`
|
||||
fi
|
||||
j_verse=`cat $dd/json/verse.json`
|
||||
j_user=`cat $dd/json/user.json`
|
||||
j_user=`cat $dd/json/${handle}.user.json`
|
||||
|
||||
case $col in
|
||||
ai.syui.verse)
|
||||
@@ -106,7 +114,7 @@ function at_delete_record() {
|
||||
}
|
||||
|
||||
at_env_arg
|
||||
at_env
|
||||
at_env $1 $2
|
||||
at_create_session
|
||||
at_refresh_session
|
||||
|
||||
|
Reference in New Issue
Block a user