2019-09-09 08:27:32 +09:00

12 lines
328 B
Bash
Executable File

#!/bin/sh
TYPES=`curl -sS 'https://notify.moe/api/types' | jq '.[]' | cut -d '"' -f 2`
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$SCRIPTPATH"
mkdir -p arn
for TYPENAME in $TYPES; do
echo "Downloading db/arn/$TYPENAME.dat"
URL=https://notify.moe/api/types/$TYPENAME/download
curl -sS $URL -o arn/$TYPENAME.dat
done