Correction d'un bug dans le script ligne 86 base décimale forcée (#3529)

This commit is contained in:
Didier Clermonté 2019-08-01 22:19:44 +02:00 committed by root
parent 4d12ffbc4f
commit 6688d8153d
1 changed files with 1 additions and 1 deletions

View File

@ -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"