From 3089fde107477c0091f0ad562a99f32a94c221c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didier=20Clermont=C3=A9?= Date: Wed, 1 Jan 2020 22:49:07 +0100 Subject: [PATCH] Corrected bug in tools/rapport_activite.sh (#3992) --- tools/rapport_activite.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rapport_activite.sh b/tools/rapport_activite.sh index 6887f08a..62d8d646 100755 --- a/tools/rapport_activite.sh +++ b/tools/rapport_activite.sh @@ -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"