diff --git a/src/bind/build/argus_dns_sync.sh b/src/bind/build/argus_dns_sync.sh index 76c8f88..7cc8be4 100644 --- a/src/bind/build/argus_dns_sync.sh +++ b/src/bind/build/argus_dns_sync.sh @@ -61,7 +61,10 @@ upsert_record() { echo "[SKIP] ${name} unchanged (${new_ip})" fi - return $changed + if [[ $changed -eq 1 ]]; then + return 0 + fi + return 1 } while true; do @@ -97,4 +100,3 @@ while true; do sleep "$SLEEP_SECONDS" done -