fixed typo

This commit is contained in:
Nick 2021-05-07 13:10:17 -04:00
parent 4e7dac50c1
commit 56db90ff28

4
run.sh
View File

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