Skip to content
Snippets Groups Projects
Commit 17746273 authored by Holger Levsen's avatar Holger Levsen
Browse files

happy new year, set real_year=2022 to be able to detect real and fake dates


Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent e911842c
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# vim: set noexpandtab:
# Copyright 2014-2021 Holger Levsen <holger@layer-acht.org>
# Copyright 2014-2022 Holger Levsen <holger@layer-acht.org>
# © 2015-2018 Mattia Rizzolo <mattia@mapreri.org>
# released under the GPLv2
......@@ -95,7 +95,7 @@ fi
# (XXX: yes this is hardcoded but meh…)
echo "$(date -u) - testing whether the time is right..."
get_node_information "$HOSTNAME"
real_year=2021
real_year=2022
year=$(date +%Y)
if "$NODE_RUN_IN_THE_FUTURE"; then
if [ "$year" -eq "$real_year" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment