mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
Merge pull request #36 from PeterMosmans/bugfix
Fixed minor redirection typo for 'which' command
This commit is contained in:
commit
7cf2030c20
@ -1725,7 +1725,7 @@ get_dns_entries() {
|
|||||||
SNI="" # override this as we test the IP only
|
SNI="" # override this as we test the IP only
|
||||||
else
|
else
|
||||||
# for security testing sometimes we have local host entries, so getent is preferred
|
# for security testing sometimes we have local host entries, so getent is preferred
|
||||||
if which getent 2>&1 >/dev/null ; then
|
if which getent &>/dev/null; then
|
||||||
getent ahostsv4 $NODE 2>/dev/null >/dev/null
|
getent ahostsv4 $NODE 2>/dev/null >/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
# Linux:
|
# Linux:
|
||||||
|
Loading…
Reference in New Issue
Block a user