Explorar el Código

fixed months associations for awstats index

Serghey Rodin hace 12 años
padre
commit
f182841fda
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/v-update-web-domain-stat

+ 1 - 1
bin/v-update-web-domain-stat

@@ -110,7 +110,7 @@ build_awstats() {
         grep -v icon | sort -r )
     for link in $months; do
         year=$(echo $link |cut -f 1 -d \-)
-        month=$(echo $link |cut -f 2 -d \-)
+        month=$(echo $link |cut -f 2 -d \-| sed -e "s/^0//")
         case "$month" in
             1) month='January';;
             2) month='February';;