Corrected bug in tools/rapport_activite.sh (#3992)

This commit is contained in:
Didier Clermonté 2020-01-01 22:49:07 +01:00 committed by root
parent 6ad8bfebbf
commit 3089fde107
1 changed files with 1 additions and 0 deletions

View File

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