diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-12 23:48:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-12 23:48:15 +0300 |
commit | cb7a812df279a0ad57ad19f9338ecad951b974d5 (patch) | |
tree | 87020c3f06778b0cae9f9dabb75cbfad06d53912 | |
parent | 338634d502b16abf36964d4f404417a7fa77b420 (diff) | |
download | evol-tools-cb7a812df279a0ad57ad19f9338ecad951b974d5.tar.gz evol-tools-cb7a812df279a0ad57ad19f9338ecad951b974d5.tar.bz2 evol-tools-cb7a812df279a0ad57ad19f9338ecad951b974d5.tar.xz evol-tools-cb7a812df279a0ad57ad19f9338ecad951b974d5.zip |
-rwxr-xr-x | localserver/build.sh | 1 | ||||
-rwxr-xr-x | localserver/checktime.sh | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/localserver/build.sh b/localserver/build.sh index ee8a93c..e299d4c 100755 --- a/localserver/build.sh +++ b/localserver/build.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash export DIR=`pwd` +./checktime.sh source ./clean.sh ./build.sh old 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 |