Corrected bug in tools/rapport_activite.sh (#3992)
This commit is contained in:
parent
6ad8bfebbf
commit
3089fde107
@ -105,6 +105,7 @@ elif [ "$#" = 1 ] && [ "$1" = "-p" ]; then
|
|||||||
else [ "$(date +%m)" -eq 1 ]
|
else [ "$(date +%m)" -eq 1 ]
|
||||||
precedingMonth=12
|
precedingMonth=12
|
||||||
year="$(($(date +%Y)-1))"
|
year="$(($(date +%Y)-1))"
|
||||||
|
yearMonth="$year-$precedingMonth"
|
||||||
fi
|
fi
|
||||||
monthEnglish=$(LANG=en_EN.UTF-8;date -d $year-$precedingMonth-01 +%b)
|
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"
|
echo -e "Rapport d'activité du service paste.chapril.org du mois $monthEnglish $year"
|
||||||
|
Loading…
Reference in New Issue
Block a user