From 0080bb4bba61171dd2b0654ce36359e5191db01a Mon Sep 17 00:00:00 2001 From: Michael Gray Date: Sat, 25 Apr 2020 15:34:56 +1000 Subject: [PATCH] ddns-scripts: cloudflare.com-v4: Fix success check for new response format JSON response now has spaces between parameters. Accept this new format and the old one. Signed-off-by: Michael Gray --- net/ddns-scripts/Makefile | 2 +- net/ddns-scripts/files/update_cloudflare_com_v4.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index fe634882d..6886b4ac2 100755 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -12,7 +12,7 @@ PKG_NAME:=ddns-scripts PKG_VERSION:=2.7.8 # Release == build # increase on changes of services files or tld_names.dat -PKG_RELEASE:=17 +PKG_RELEASE:=18 PKG_LICENSE:=GPL-2.0 PKG_MAINTAINER:= diff --git a/net/ddns-scripts/files/update_cloudflare_com_v4.sh b/net/ddns-scripts/files/update_cloudflare_com_v4.sh index dbf6f592b..7e663ac42 100755 --- a/net/ddns-scripts/files/update_cloudflare_com_v4.sh +++ b/net/ddns-scripts/files/update_cloudflare_com_v4.sh @@ -85,7 +85,7 @@ cloudflare_transfer() { done # check for error - grep -q '"success":true' $DATFILE || { + grep -q '"success": \?true' $DATFILE || { write_log 4 "CloudFlare reported an error:" write_log 7 "$(cat $DATFILE)" # report error return 1 # HTTP-Fehler