Fixed test script
This commit is contained in:
parent
0dd32986e5
commit
6bfe81fdc3
@ -2,10 +2,10 @@
|
|||||||
TYPES=`curl -sS 'https://notify.moe/api/types' | jq '.[]' | cut -d '"' -f 2`
|
TYPES=`curl -sS 'https://notify.moe/api/types' | jq '.[]' | cut -d '"' -f 2`
|
||||||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
cd "$SCRIPTPATH"
|
cd "$SCRIPTPATH"
|
||||||
mkdir -p arn2
|
mkdir -p arn
|
||||||
|
|
||||||
for TYPENAME in $TYPES; do
|
for TYPENAME in $TYPES; do
|
||||||
echo "Downloading db/arn/$TYPENAME.dat"
|
echo "Downloading db/arn/$TYPENAME.dat"
|
||||||
URL=https://notify.moe/api/types/$TYPENAME/download
|
URL=https://notify.moe/api/types/$TYPENAME/download
|
||||||
curl -sS $URL -o arn2/$TYPENAME.dat
|
curl -sS $URL -o arn/$TYPENAME.dat
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user