fix scpt
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								test/notify_cid.zsh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								test/notify_cid.zsh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
 | 
			
		||||
function cid(){
 | 
			
		||||
	dd=${d:h}
 | 
			
		||||
	ai=$dd/target/debug/ai
 | 
			
		||||
	txt=$dd/.config/ai/txt
 | 
			
		||||
	f=$txt/notify_cid
 | 
			
		||||
	if [ ! -f $ai ];then
 | 
			
		||||
		cd $dd
 | 
			
		||||
		cargo build
 | 
			
		||||
	fi
 | 
			
		||||
	if [ ! -d $txt ];then
 | 
			
		||||
		mkdir -p $txt
 | 
			
		||||
	fi
 | 
			
		||||
	$ai n|jq -r ".[]|.[]?.cid" >> $f.txt
 | 
			
		||||
	cp -rf $f.txt ${f}_run.txt
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user