fix date comparison

This commit is contained in:
Dominic Reich 2024-08-21 18:59:37 +02:00
parent a5fb52c0f9
commit a4db472045
Signed by: dominic
GPG key ID: BC9D6AE1A3BE169A

View file

@ -20,7 +20,7 @@ bodymg='an error occured. invalid scope probably.'
# Change settings here
sendcc='no'
if [[ $month -eq 2 || $month -eq 4 || $month -eq 6 || $month -eq 8 || $month -eq 10 || $month -eq 12 ]]; then
if [[ "$month" = "02" || "$month" = "04" || "$month" = "06" || "$month" = "08" || "$month" = "10" || "$month" = "12" ]]; then
# in diesem Monat senden
if [ $day -gt 7 ]; then
# nicht senden, falls wir schon nach der ersten woche sind