fix missing awk

master
David Kebler 2024-08-22 11:23:09 -07:00
parent bf6e5e85ee
commit 8502fb04a9
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ echo "$myip"
getip () {
[[ ! $1 ]] && return 1
if ip=$(getent ahostsv4 $1); then
echo $ip | grep STREAM | '{ print $1 ; exit }'
echo $ip | grep STREAM | awk '{ print $1 ; exit }'
else
return 2
fi

View File

@ -10,7 +10,7 @@ local conf
_getip () {
[[ ! $1 ]] && return 1
if ip=$(getent ahostsv4 $1); then
echo $ip | grep STREAM | '{ print $1 ; exit }'
echo $ip | grep STREAM | awk '{ print $1 ; exit }'
else
return 2
fi