1
0
card/scpt/card_number_push.zsh

17 lines
294 B
Bash
Raw Normal View History

2023-03-31 19:52:34 +00:00
#!/bin/zsh
d=${0:a:h}
dd=${0:a:h:h}
url=https://syui.ai/img
json=$dd/public/json/card.json
n=`cat $json|jq "length"`
n=`expr $n - 1`
for ((i=0;i<=14;i++))
do
sid=`cat $json|jq -r ".[$i].src"`
id=`cat $json|jq -r ".[$i].id"`
curl -sL $url/${sid}.png -o ~/ai/yui/content/img/${id}.png
done