Unverified Commit f02af8d4 authored by peterkelm's avatar peterkelm Committed by GitHub
Browse files

Reflect recent Variomedia API changes

Spaces were recently removed from the JSON "response" returned by Variomedia's API.
parent 71a5f0e8
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment