[arch-commits] Commit in geoip-database/trunk (check-last-modified.sh)

Evangelos Foutras foutrelis at archlinux.org
Wed May 10 21:30:14 UTC 2017


    Date: Wednesday, May 10, 2017 @ 21:30:13
  Author: foutrelis
Revision: 295572

check-last-modified.sh: Fix for lowercase response headers

Modified:
  geoip-database/trunk/check-last-modified.sh

------------------------+
 check-last-modified.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: check-last-modified.sh
===================================================================
--- check-last-modified.sh	2017-05-10 21:23:36 UTC (rev 295571)
+++ check-last-modified.sh	2017-05-10 21:30:13 UTC (rev 295572)
@@ -13,10 +13,10 @@
       https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
       https://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
       https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
-	  https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz)
+      https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz)
 
 for url in ${URLS[@]}; do
-	last_mod=$(curl -sI $url | grep ^Last-Modified: | cut -d' ' -f2- | tr -d '\r')
+	last_mod=$(curl -sI $url | grep -i ^Last-Modified: | cut -d' ' -f2- | tr -d '\r')
 	echo "$last_mod (${url##*/})"
 
 	if ((verbose)); then



More information about the arch-commits mailing list