Reflect recent Variomedia API changes

Spaces were recently removed from the JSON "response" returned by Variomedia's API.
This commit is contained in:
peterkelm 2020-07-07 22:56:51 +02:00 committed by GitHub
parent 71a5f0e84e
commit f02af8d481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ _get_root() {
fi
if _startswith "$response" "\{\"data\":"; then
if _contains "$response" "\"id\": \"$h\""; then
if _contains "$response" "\"id\":\"$h\""; then
_sub_domain="$(echo "$fulldomain" | sed "s/\\.$h\$//")"
_domain=$h
return 0