rapport d'activités: correction du format (textile)

ne pas barrer le texte "instance mineclone2"
This commit is contained in:
Pierre-Louis Bonicoli 2024-06-16 18:33:20 +02:00
parent baa09328c4
commit 3c40a12635
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD

View File

@ -91,7 +91,7 @@ elif [ "$#" = 1 ] && [ "$1" = "-p" ]; then
month="$year$precedingMonth"
fi
monthEnglish=$(LANG=en_EN.UTF-8;date -d $year-$precedingMonth-01 +%b)
echo -e "Rapport d'activité du service minetest.chapril.org -instance mineclone2- du mois $monthEnglish $year"
echo -e "Rapport d'activité du service minetest.chapril.org - instance mineclone2 - du mois $monthEnglish $year"
generateReport "$monthEnglish" "$month" "$year"
elif [ "$#" -eq 2 ]; then
if ! (let "$1") 2>/dev/null; then
@ -117,14 +117,14 @@ elif [ "$#" -eq 2 ]; then
fi
monthEnglish=$(LANG=en_EN.UTF-8;date -d "$2-$1-01" +%b)
year="$2"
echo -e "Rapport d'activité du service minetest.chapril.org -instance mineclone2- du mois $monthEnglish $2"
echo -e "Rapport d'activité du service minetest.chapril.org - instance mineclone2 - du mois $monthEnglish $2"
generateReport "$monthEnglish" "$month" "$year"
fi
elif [ "$#" -eq 0 ]; then
month="$(date +%Y%m)"
monthEnglish=$(LANG=en_EN.UTF-8;date +%b)
year="$(date +%Y)"
echo -e "Rapport d'activité du service minetest.chapril.org -instance mineclone2- du mois $(date +%b) 20$(date +%y)"
echo -e "Rapport d'activité du service minetest.chapril.org - instance mineclone2 - du mois $(date +%b) 20$(date +%y)"
generateReport "$monthEnglish" "$month" "$year"
else
echo -e "Bad parameter."