From 2c1b78a1c63bb186773c5c6527341eef570ad932 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Thu, 26 Jun 2014 20:15:02 +0200 Subject: [PATCH] Added support for .org TLD and updated 'Currently supports'-line --- check_domain | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/check_domain b/check_domain index 7202bc6..51b4e48 100755 --- a/check_domain +++ b/check_domain @@ -88,7 +88,7 @@ This plugin will use whois service to get the expiration date for the domain nam Example: $PROGRAM -d domain.tld -w 30 -c 10 -Currently supports .com, .ca, .tv, .ee, .ru +Currently supports .com, .ca, .tv, .ee, .ru, .nu .se, .net, .org EOF } @@ -146,6 +146,9 @@ case "$domain" in ;; *.net) expiration=$(echo "$out" | awk -F: '/ Expiration Date:/{print substr($0, length($1) + 3, 11)}') + ;; +*.org) + expiration=$(echo "$out" | awk -F: '/ Expiry Date:/{print substr($0, length($1) + 3, 10)}') ;; *.nu) expiration=$(echo "$out" | grep expires | awk '{print $2}')