Quellcode durchsuchen

fixed months associations for awstats index

Serghey Rodin vor 12 Jahren
Ursprung
Commit
f182841fda
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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';;