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=$?
[ $DEBUG -eq 1 ] && echo "Whois return :" && echo -e "$WHOIS"
-if [ $RET -ne 0 ]
+if [ $RET -ne 0 -a "$TLD" != "net" -a "$TLD" != "com" ]
then
echo "UNKNOWN : Impossible to get expiration date."
exit 3