From cb7a812df279a0ad57ad19f9338ecad951b974d5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Sep 2017 23:48:15 +0300 Subject: localserver: add check for wrong date in build.sh --- localserver/checktime.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 localserver/checktime.sh (limited to 'localserver/checktime.sh') diff --git a/localserver/checktime.sh b/localserver/checktime.sh new file mode 100755 index 0000000..9ca0c95 --- /dev/null +++ b/localserver/checktime.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +year=$(date "+%Y") + +if [[ $year -lt 2017 ]]; then + date + echo "Error: Date time is wrong. Please fix time. See man date" + exit 1 +fi \ No newline at end of file -- cgit v1.2.3-70-g09d2