Browse Source

Fix error messages in find_dns_utils from older versions of "command"

pull/539/head
Tim Kimber 6 years ago
parent
commit
ad28d69371
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      getssl

+ 4
- 4
getssl View File

@ -833,20 +833,20 @@ find_dns_utils() {
HAS_NSLOOKUP=false
HAS_DIG_OR_DRILL=""
HAS_HOST=false
if [[ -n "$(command -v nslookup)" ]]; then
if [[ -n "$(command -v nslookup 2>/dev/null)" ]]; then
debug "HAS NSLOOKUP=true"
HAS_NSLOOKUP=true
fi
if [[ -n "$(command -v drill)" ]]; then
if [[ -n "$(command -v drill 2>/dev/null)" ]]; then
debug "HAS DIG_OR_DRILL=drill"
HAS_DIG_OR_DRILL="drill"
elif [[ -n "$(command -v dig)" ]]; then
elif [[ -n "$(command -v dig 2>/dev/null)" ]]; then
debug "HAS DIG_OR_DRILL=dig"
HAS_DIG_OR_DRILL="dig"
fi
if [[ -n "$(command -v host)" ]]; then
if [[ -n "$(command -v host 2>/dev/null)" ]]; then
debug "HAS HOST=true"
HAS_HOST=true
fi


Loading…
Cancel
Save