fix date comparison

main
Dominic Reich 4 weeks ago
parent a5fb52c0f9
commit a4db472045
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -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

Loading…
Cancel
Save