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

This commit is contained in:
Didier Clermonté 2019-08-01 22:23:13 +02:00 committed by root
parent 0bab6f939f
commit bbe505ed41

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
month="${year}0$precedingMonth"