Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcus Hoffmann
jenkins.debian.net
Commits
52bb012e
Commit
52bb012e
authored
Dec 30, 2020
by
Holger Levsen
Browse files
trbo: adjust test for right/wrong future to also work at the end of December...
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
2619b67b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/reproducible_node_health_check.sh
View file @
52bb012e
...
...
@@ -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
)
."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment