From a012b111fd81a1b9f4e6a4769d6ff0b4c38c6010 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 24 Sep 2013 17:45:11 +0300 Subject: [PATCH] v1.2.4: added .dk support, thanks Troels Hansen! --- check_domain.sh | 6 +++++- test.sh | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/check_domain.sh b/check_domain.sh index cfb4393..841eb21 100755 --- a/check_domain.sh +++ b/check_domain.sh @@ -33,7 +33,7 @@ die() { fullusage() { cat <, 2009-2013 Elan Ruusamäe under GPL License @@ -131,6 +131,10 @@ case "$domain" in set -- "$1" "$(month2moy $2)" "$3" expiration="$1-$2-$3" ;; +*.dk) + # Expires: 2014-01-31 + expiration=$(echo "$out" | awk '/Expires:/ {print $2}') + ;; *.uk) # Expiry date: 05-Dec-2014 set -- $(echo "$out" | awk '/Expiry date:/{split($3, a, "-"); printf("%s %s %s\n", a[3], a[2], a[1])}') diff --git a/test.sh b/test.sh index 3179311..4e72b38 100755 --- a/test.sh +++ b/test.sh @@ -17,6 +17,7 @@ delfi.tv amazon.ca amazon.ie amazon.co.uk +dk-hostmaster.dk " for domain in $domains; do -- 2.44.0