From 8502fb04a90f8828c5c96527a9387ee7e73365b6 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Thu, 22 Aug 2024 11:23:09 -0700 Subject: [PATCH] fix missing awk --- modules/net-utils.mod | 2 +- modules/sshd-dns.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/net-utils.mod b/modules/net-utils.mod index b891b6d..456764f 100644 --- a/modules/net-utils.mod +++ b/modules/net-utils.mod @@ -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 diff --git a/modules/sshd-dns.mod b/modules/sshd-dns.mod index d14a927..c10eddd 100644 --- a/modules/sshd-dns.mod +++ b/modules/sshd-dns.mod @@ -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