12 lines
330 B
Bash
Raw Normal View History

2019-09-08 23:27:13 +00:00
#!/bin/sh
2019-10-26 07:10:24 +00:00
TYPES=`curl -sS 'https://notify.moe/api/types' | gojq '.[]' | cut -d '"' -f 2`
2019-09-08 23:27:13 +00:00
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$SCRIPTPATH"
2019-09-08 23:27:32 +00:00
mkdir -p arn
2019-09-08 23:27:13 +00:00
for TYPENAME in $TYPES; do
echo "Downloading db/arn/$TYPENAME.dat"
URL=https://notify.moe/api/types/$TYPENAME/download
2019-09-08 23:27:32 +00:00
curl -sS $URL -o arn/$TYPENAME.dat
2019-09-08 23:27:13 +00:00
done