diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-10 00:45:07 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-10 00:45:07 -0300 |
commit | c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe (patch) | |
tree | 742dd839971d2aab1f08fd0291af66e6439646ab /localserver/checktime.sh | |
download | tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.gz tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.bz2 tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.tar.xz tools-c6095ad062eaa0f5576cfab1c4fe436b90c2fbfe.zip |
Add initial tools
Diffstat (limited to 'localserver/checktime.sh')
-rwxr-xr-x | localserver/checktime.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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 |