Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
297859c5
Unverified
Commit
297859c5
authored
Mar 23, 2019
by
neil
Committed by
GitHub
Mar 23, 2019
Browse files
Merge pull request #2191 from temoffey/gcore_cdn_deploy
fix gcore_cdn_deploy
parents
a4cc9ef2
bea52aa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/gcore_cdn.sh
View file @
297859c5
...
...
@@ -74,9 +74,9 @@ gcore_cdn_deploy() {
_response
=
$(
_get
"https://api.gcdn.co/resources"
)
_debug _response
"
$_response
"
_regex
=
".*(
\"
id
\"
.*?
\"
cname
\"
:
\"
$_cdomain
\"
.*?})"
_regex
=
"
\"
cname
\"
:
\"
$_cdomain
\"
"
_regex
=
"
^.*
\"
cname
\"
:
\"
$_cdomain
\"
.*$
"
_debug _regex
"
$_regex
"
_resource
=
$(
echo
"
$_response
"
|
sed
's/},{/},\n{/g'
|
grep
-E
"
$_regex
"
)
_resource
=
$(
echo
"
$_response
"
|
sed
's/},{/},\n{/g'
|
_e
grep
_o
"
$_regex
"
)
_debug _resource
"
$_resource
"
_regex
=
".*
\"
id
\"
:
\(
[0-9]*
\)
,.*$"
_debug _regex
"
$_regex
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment