From 6688d8153deb127e0eef68e51cb6f12097a47310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didier=20Clermont=C3=A9?= Date: Thu, 1 Aug 2019 22:19:44 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20bug=20dans=20le=20script=20?= =?UTF-8?q?ligne=2086=20base=20d=C3=A9cimale=20forc=C3=A9e=20(#3529)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/rapport_activite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rapport_activite.sh b/tools/rapport_activite.sh index c2282ad5..5073b1bc 100755 --- a/tools/rapport_activite.sh +++ b/tools/rapport_activite.sh @@ -83,7 +83,7 @@ if [ "$#" = 1 ] && [ "$1" = "-h" ]; then help elif [ "$#" = 1 ] && [ "$1" = "-p" ]; then if [ "$(date +%m)" -gt 1 ]; then - precedingMonth="$(($(date +%m)-1))" + precedingMonth="$((10#$(date +%m)-1))" year="$(date +%Y)" if [ $precedingMonth -lt 10 ]; then yearMonth="$year-0$precedingMonth"