updated fixed some things

This commit is contained in:
Nick 2021-05-07 13:05:31 -04:00
parent 32f3f2f30b
commit fba8d6b0e3

9
run.sh
View File

@ -15,10 +15,15 @@ then
exit 1
fi
for f in ${URLs | cut -d'=' -f2-)
for f in ${URLs | cut -d'=' -f2-); do
curl -s -X POST \
-H 'AccessKey: '"${BUNNYCDN_API}"'' \
-H 'Content-Length: 0' \
'https://api.bunny.net/purge?url='"${f}"
echo "Cleared cache for ${f}"
if [ $? -eq 0 ]; then
echo "Cleared cache for ${f}"
else
echo "Cleared not completed"
exit 1
fi
done