fixed typo
This commit is contained in:
parent
4e7dac50c1
commit
56db90ff28
4
run.sh
4
run.sh
@ -15,15 +15,17 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in "${URLs}"; do
|
for f in ${URLs}; do
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H 'AccessKey: '"${BUNNYCDN_API}"'' \
|
-H 'AccessKey: '"${BUNNYCDN_API}"'' \
|
||||||
-H 'Content-Length: 0' \
|
-H 'Content-Length: 0' \
|
||||||
'https://api.bunny.net/purge?url='"${f}"
|
'https://api.bunny.net/purge?url='"${f}"
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Cleared cache for ${f}"
|
echo "Cleared cache for ${f}"
|
||||||
else
|
else
|
||||||
echo "Cleared not completed"
|
echo "Cleared not completed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user