From 6030c3da3af2eda04fd937d44fd3e46c7cd6e2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didier=20Clermont=C3=A9?= Date: Wed, 1 Jan 2020 23:07:28 +0100 Subject: [PATCH] Corrected bug in rapport_activite.sh (#3528) --- tools/rapport_activite.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rapport_activite.sh b/tools/rapport_activite.sh index 7de1c0a..2bbf4f8 100755 --- a/tools/rapport_activite.sh +++ b/tools/rapport_activite.sh @@ -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"