diff --git a/chertex.sh b/chertex.sh index 9ad0bcc..c6eedf2 100755 --- a/chertex.sh +++ b/chertex.sh @@ -265,9 +265,19 @@ else fi +# Depending on whether the clock uses summer or wintertime, the date string length +# will differ by one (CEST vs CET). +# Just to be neat, we will take this into consideration when constructing the +# "job completed" block below. +cetcest=$(date +%Z) + echo "-------------------------------------" echo "=== chertex.sh completed ===" -echo "=== $(date) ===" +if [[ $cetcest == "CET" ]]; then + echo "=== $(date) ===" +else + echo "=== $(date) ===" +fi echo "-------------------------------------" simpledelay.sh 3