Fix .org TLD check
Benjamin Renard

Benjamin Renard commited on 2017-07-28 21:51:36
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -77,7 +77,7 @@ case $TLD in
77 77
 	*)
78 78
 		EXTXT=`echo -e "$WHOIS"|grep "^expires:"|tail -n 1`
79 79
 		[ $DEBUG -eq 1 ] && echo "expire result format 1 : $EXTXT"
80
-		[ ! -n "$EXTXT" ] && EXTXT=`echo -e "$WHOIS"|egrep "([^:]*Expiration Date|Renewal date|Registry Expiry Date)"|tail -n 1`
80
+		[ ! -n "$EXTXT" ] && EXTXT=`echo -e "$WHOIS"|egrep "([^:]*Expiration Date|Renewal date|Registry Expiry Date)"|head -n 1`
81 81
 		[ $DEBUG -eq 1 ] && echo "expire result format 2 : $EXTXT"
82 82
 		
83 83
 		[ $DEBUG -eq 1 ] && echo "Whois expire date : $EXTXT"
84 84