From bbe505ed41cd6d2b9f7b56a716924164a660cdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didier=20Clermont=C3=A9?= Date: Thu, 1 Aug 2019 22:23:13 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20bug=20dans=20le=20script=20?= =?UTF-8?q?ligne=2086=20base=20decimale=20forc=C3=A9e=20(#3528)?= 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 e8ebcb5..529d49a 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 month="${year}0$precedingMonth"