Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
bea52aa7
Commit
bea52aa7
authored
Mar 23, 2019
by
temoffey
Browse files
remove use grep -E
parent
df917457
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/gcore_cdn.sh
View file @
bea52aa7
...
@@ -74,9 +74,9 @@ gcore_cdn_deploy() {
...
@@ -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'
|
_e
grep
_o
"
$_regex
"
)
_debug _resource
"
$_resource
"
_debug _resource
"
$_resource
"
_regex
=
".*
\"
id
\"
:
\(
[0-9]*
\)
,.*$"
_regex
=
".*
\"
id
\"
:
\(
[0-9]*
\)
,.*$"
_debug _regex
"
$_regex
"
_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