updated fixed some things
This commit is contained in:
parent
32f3f2f30b
commit
fba8d6b0e3
9
run.sh
9
run.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user