Fixed test script

This commit is contained in:
Eduard Urbach 2019-09-09 08:27:32 +09:00
parent 0dd32986e5
commit 6bfe81fdc3
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -2,10 +2,10 @@
TYPES=`curl -sS 'https://notify.moe/api/types' | jq '.[]' | cut -d '"' -f 2`
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$SCRIPTPATH"
mkdir -p arn2
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 arn2/$TYPENAME.dat
curl -sS $URL -o arn/$TYPENAME.dat
done