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