From 52bb012e4f536880dcafeb9a8f6ea0fd6943c12a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 30 Dec 2020 19:53:50 +0100 Subject: [PATCH] trbo: adjust test for right/wrong future to also work at the end of December... Signed-off-by: Holger Levsen --- bin/reproducible_node_health_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh index ac92339bd..79973a739 100755 --- a/bin/reproducible_node_health_check.sh +++ b/bin/reproducible_node_health_check.sh @@ -102,7 +102,7 @@ if "$NODE_RUN_IN_THE_FUTURE"; then echo "Warning: today $HOSTNAME came back to the present: $(date -u)." DIRTY=true elif [ "$year" -eq "$((real_year + 1))" ] || \ - [ "$year" -eq "$((real_year + 2))" -a "$(date +%m)" -eq 1 ]; then + [ "$year" -eq "$((real_year + 2))" -a "$(date +%m)" -le 2 ]; then echo "Good, today is the right future: $(date -u)." else echo "Warning: today is the wrong future: $(date -u)." -- GitLab