diff .ssh/athome @ 271:e7e331a51f2c

Just remove the -s option since we're redirecting anyway
author Steve Huston <huston@princeton.edu>
date Thu, 25 Apr 2024 13:59:42 -0400
parents 6dc992e4fc4a
children
line wrap: on
line diff
--- a/.ssh/athome	Thu Apr 25 13:21:10 2024 -0400
+++ b/.ssh/athome	Thu Apr 25 13:59:42 2024 -0400
@@ -20,9 +20,9 @@
 # Now how to get the home IP.. let's loop through ways it's possible
 HOMEDNS="b6800200.eero.online"
 
-if which -s getent awk > /dev/null 2>&1 ; then
+if which getent awk > /dev/null 2>&1 ; then
   HOMEIP=`getent ahostsv4 $HOMEDNS | awk '{print $1; exit}'`
-elif which -s dig > /dev/null 2>&1 ; then
+elif which dig > /dev/null 2>&1 ; then
   HOMEIP=`dig +short $HOMEDNS`
 else
   exit $off