Fix .com and .net check
Benjamin Renard

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


 Whois command may return != 0 code with .com and .net domains
... ...
@@ -14,7 +14,7 @@ RET=$?
14 14
 
15 15
 [ $DEBUG -eq 1 ] && echo "Whois return :" && echo -e "$WHOIS"
16 16
 
17
-if [ $RET -ne 0  ]
17
+if [ $RET -ne 0 -a "$TLD" != "net" -a "$TLD" != "com" ]
18 18
 then
19 19
 	echo "UNKNOWN : Impossible to get expiration date."
20 20
 	exit 3
21 21