Commit 52bb012e authored by Holger Levsen's avatar Holger Levsen
Browse files

trbo: adjust test for right/wrong future to also work at the end of December...



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 2619b67b
......@@ -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)."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment