From 3dbd3f11dd185a901e535da608b3fe7e614042e1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 12 Mar 2017 11:55:07 +0100 Subject: ignore empty lines --- update-ddns.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-ddns.in b/update-ddns.in index caace9c..afbc11a 100644 --- a/update-ddns.in +++ b/update-ddns.in @@ -112,7 +112,7 @@ do sort -u )" - if [ $(echo "${ips}" | wc -l) -eq 0 ] + if [ $(echo "${ips}" | grep -c '.') -eq 0 ] then updateIps="${updateIps}"',auto' if [ -n "${curlForceIpVer}" ] && [ "${curlForceIpVer}" != "${ipCmdVers[${j}]}" ] -- cgit v1.2.3-70-g09d2