Added support for .org TLD and updated 'Currently supports'-line
This commit is contained in:
parent
d38da3473e
commit
2c1b78a1c6
@ -88,7 +88,7 @@ This plugin will use whois service to get the expiration date for the domain nam
|
|||||||
Example:
|
Example:
|
||||||
$PROGRAM -d domain.tld -w 30 -c 10
|
$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
|
EOF
|
||||||
}
|
}
|
||||||
@ -147,6 +147,9 @@ case "$domain" in
|
|||||||
*.net)
|
*.net)
|
||||||
expiration=$(echo "$out" | awk -F: '/ Expiration Date:/{print substr($0, length($1) + 3, 11)}')
|
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)
|
*.nu)
|
||||||
expiration=$(echo "$out" | grep expires | awk '{print $2}')
|
expiration=$(echo "$out" | grep expires | awk '{print $2}')
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user