diff --git a/run.sh b/run.sh index 3b8be16..ea9c38c 100644 --- a/run.sh +++ b/run.sh @@ -1,7 +1,7 @@ #!/bin/bash set +x -URLs=$(export | grep URL) +URLs=$(export | grep URL | cut -d'=' -f2-) #if [[ -z "${URL}" ]] #then @@ -15,7 +15,7 @@ then exit 1 fi -for f in ${URLs | cut -d'=' -f2-); do +for f in "${URLs}"; do curl -s -X POST \ -H 'AccessKey: '"${BUNNYCDN_API}"'' \ -H 'Content-Length: 0' \