ddns-script: fix retry_max_count for dnspod

Fix missed modification of ‘retry_count’ to ‘retry_max_count’
in commit ‘e3292e4c97’ (rename variable: s/retry_count/retry_max_count/).

Signed-off-by: FriesI23 Qin <FriesI23@outlook.com>
This commit is contained in:
FriesI23 Qin
2025-01-28 10:36:32 +08:00
committed by Florian Eckert
parent e10ddcfa09
commit 46b6f3dec8

View File

@@ -70,7 +70,7 @@ dnspod_transfer() {
return 1
fi
__CNT=$(($__CNT + 1))
[ $retry_count -gt 0 -a $__CNT -gt $retry_count ] && write_log 14 "Transfer failed after $retry_count retries"
[ $retry_max_count -gt 0 -a $__CNT -gt $retry_max_count ] && write_log 14 "Transfer failed after $retry_max_count retries"
write_log 4 "Transfer failed - $__CNT Try again in $RETRY_SECONDS seconds"
sleep $RETRY_SECONDS &
PID_SLEEP=$!