Browse Source
Merge pull request #2191 from temoffey/gcore_cdn_deploy
fix gcore_cdn_deploy
dnsconf
neil
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
deploy/gcore_cdn.sh
|
@ -74,9 +74,9 @@ gcore_cdn_deploy() { |
|
|
_response=$(_get "https://api.gcdn.co/resources") |
|
|
_response=$(_get "https://api.gcdn.co/resources") |
|
|
_debug _response "$_response" |
|
|
_debug _response "$_response" |
|
|
_regex=".*(\"id\".*?\"cname\":\"$_cdomain\".*?})" |
|
|
_regex=".*(\"id\".*?\"cname\":\"$_cdomain\".*?})" |
|
|
_regex="\"cname\":\"$_cdomain\"" |
|
|
|
|
|
|
|
|
_regex="^.*\"cname\":\"$_cdomain\".*$" |
|
|
_debug _regex "$_regex" |
|
|
_debug _regex "$_regex" |
|
|
_resource=$(echo "$_response" | sed 's/},{/},\n{/g' | grep -E "$_regex") |
|
|
|
|
|
|
|
|
_resource=$(echo "$_response" | sed 's/},{/},\n{/g' | _egrep_o "$_regex") |
|
|
_debug _resource "$_resource" |
|
|
_debug _resource "$_resource" |
|
|
_regex=".*\"id\":\([0-9]*\),.*$" |
|
|
_regex=".*\"id\":\([0-9]*\),.*$" |
|
|
_debug _regex "$_regex" |
|
|
_debug _regex "$_regex" |
|
|