summaryrefslogtreecommitdiff
path: root/update-ddns.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-ddns.in')
-rw-r--r--update-ddns.in8
1 files 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}