summaryrefslogblamecommitdiff
path: root/localserver/checktime.sh
blob: 9ca0c9534fda1684c4f3ee087796150c0101792f (plain) (tree)
1
2
3
4
5
6
7
8
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