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
f02af8d4
Unverified
Commit
f02af8d4
authored
Jul 07, 2020
by
peterkelm
Committed by
GitHub
Jul 07, 2020
Browse files
Reflect recent Variomedia API changes
Spaces were recently removed from the JSON "response" returned by Variomedia's API.
parent
71a5f0e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_variomedia.sh
View file @
f02af8d4
...
@@ -107,7 +107,7 @@ _get_root() {
...
@@ -107,7 +107,7 @@ _get_root() {
fi
fi
if
_startswith
"
$response
"
"
\{\"
data
\"
:"
;
then
if
_startswith
"
$response
"
"
\{\"
data
\"
:"
;
then
if
_contains
"
$response
"
"
\"
id
\"
:
\"
$h
\"
"
;
then
if
_contains
"
$response
"
"
\"
id
\"
:
\"
$h
\"
"
;
then
_sub_domain
=
"
$(
echo
"
$fulldomain
"
|
sed
"s/
\\
.
$h
\$
//"
)
"
_sub_domain
=
"
$(
echo
"
$fulldomain
"
|
sed
"s/
\\
.
$h
\$
//"
)
"
_domain
=
$h
_domain
=
$h
return
0
return
0
...
...
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