12 lines
328 B
Bash
Raw Normal View History

2019-09-08 23:27:13 +00:00
#!/bin/sh
TYPES=`curl -sS 'https://notify.moe/api/types' | jq '.[]' | cut -d '"' -f 2`
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