fix scpt
This commit is contained in:
parent
b0bd67b279
commit
bd562b631f
@ -14,6 +14,7 @@ source $d/refresh.zsh
|
||||
source $d/token.zsh
|
||||
source $d/reply.zsh
|
||||
source $d/notify.zsh
|
||||
source $d/notify_cid.zsh
|
||||
source $d/cron.zsh
|
||||
|
||||
case $1 in
|
||||
@ -32,4 +33,7 @@ case $1 in
|
||||
cron|c)
|
||||
cron
|
||||
;;
|
||||
cid)
|
||||
cid
|
||||
;;
|
||||
esac
|
||||
|
12
test/notify_cid.zsh
Normal file
12
test/notify_cid.zsh
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
function cid(){
|
||||
dd=${d:h}
|
||||
ai=$dd/target/debug/ai
|
||||
f=$dd/.config/ai/txt/notify_cid
|
||||
if [ ! -f $ai ];then
|
||||
cd $dd
|
||||
cargo build
|
||||
fi
|
||||
$ai n|jq -r ".[]|.[]?.cid" >> $f.txt
|
||||
cp -rf $f.txt ${f}_run.txt
|
||||
}
|
Loading…
Reference in New Issue
Block a user