Corrected bug in rapport_activite.sh (#3528)

This commit is contained in:
Didier Clermonté 2020-01-01 23:07:28 +01:00 committed by root
parent 163630bc66
commit 6030c3da3a

View File

@ -103,6 +103,7 @@ elif [ "$#" = 1 ] && [ "$1" = "-p" ]; then
else
precedingMonth=12
year="$(($(date +%Y)-1))"
month="$year$precedingMonth"
fi
monthEnglish=$(LANG=en_EN.UTF-8;date -d $year-$precedingMonth-01 +%b)
echo -e "Rapport d'activité du service date.chapril.org du mois $monthEnglish $year"