From b7958778ab5e62c2a2a229d8f67458687bbdd0b7 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 (cherry picked from commit 0080bb4bba61171dd2b0654ce36359e5191db01a) --- net/ddns-scripts/files/update_cloudflare_com_v4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ddns-scripts/files/update_cloudflare_com_v4.sh b/net/ddns-scripts/files/update_cloudflare_com_v4.sh index dbf6f592bf..7e663ac424 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 -- 2.30.2