diff .ssh/athome @ 270:6dc992e4fc4a

Fix that one too
author Steve Huston <huston@srhuston.net>
date Thu, 25 Apr 2024 13:21:10 -0400
parents 33541d73d6d7
children e7e331a51f2c
line wrap: on
line diff
--- a/.ssh/athome	Thu Apr 25 11:30:48 2024 -0400
+++ b/.ssh/athome	Thu Apr 25 13:21:10 2024 -0400
@@ -22,7 +22,7 @@
 
 if which -s getent awk > /dev/null 2>&1 ; then
   HOMEIP=`getent ahostsv4 $HOMEDNS | awk '{print $1; exit}'`
-elif which -s dig ; then
+elif which -s dig > /dev/null 2>&1 ; then
   HOMEIP=`dig +short $HOMEDNS`
 else
   exit $off