[packages/nagios-plugin-check_domain] fix .tv whois. two dates in result

glen glen at pld-linux.org
Mon Dec 16 10:42:35 CET 2013


commit 857979877f85f2ac0c7d4fead515676416e21d67
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Dec 16 11:42:13 2013 +0200

    fix .tv whois. two dates in result

 check_domain.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/check_domain.sh b/check_domain.sh
index c3e7b51..613d4f7 100755
--- a/check_domain.sh
+++ b/check_domain.sh
@@ -124,7 +124,7 @@ case "$domain" in
 
 *.tv)
 	# Expiration Date: 2017-01-26T10:14:11Z
-	expiration=$(echo "$out" | sed -rne 's;Expiration Date:[^0-9]+([0-9]{4}-[0-9]{2}-[0-9]{2})T[0-9:Z]+;\1;p')
+	expiration=$(echo "$out" | sed -rne 's;Expiration Date:[^0-9]+([0-9]{4}-[0-9]{2}-[0-9]{2})T[0-9:Z]+;\1;p' | head -n1)
 	;;
 *.ca)
 	# Expiry date: 2017/07/16
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_domain.git/commitdiff/857979877f85f2ac0c7d4fead515676416e21d67



More information about the pld-cvs-commit mailing list