From 7f0ec510c84f13b05cf887a2dcf9f141a3d4631b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 29 Mar 2019 13:42:31 +0100 Subject: update-ddns.in: do not abort if curl fails once (other runs might still succeed) --- update-ddns.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/update-ddns.in b/update-ddns.in index ff589d8..ce65561 100644 --- a/update-ddns.in +++ b/update-ddns.in @@ -2,8 +2,6 @@ # version #VERSION# -set -e - stty &> /dev/null || \ sleep $[$RANDOM%60] @@ -93,6 +91,8 @@ ignoreIps='^\('"$( ' )"'\)$' +err=0 + for dnsName in $( \ echo "${dnsNamen[@]}" | \ tr ' ' '\n' | \ @@ -169,6 +169,8 @@ do else updateIps='?address='"${updateIps#,}" fi - curl ${curlForceIpVer} -sS "${updateUrl}${updateIps}" 2> /dev/null + curl ${curlForceIpVer} -sS "${updateUrl}${updateIps}" 2> /dev/null || err=$? fi done + +exit ${err} -- cgit v1.2.3-70-g09d2