From 606ad9361b57f60ddc9cbbb91a5504c1d205fb29 Mon Sep 17 00:00:00 2001 From: glen Date: Mon, 2 Nov 2020 21:26:17 -0500 Subject: [PATCH] use awk vice grep. --- installers/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index 1af5592..6b5ed92 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -134,7 +134,7 @@ function install_complete() { #provide option to launch and display lokinet address install_log "Installation completed!" IP="127.3.2.1" - snapp_address=$(host -t cname localhost.loki $IP | grep -o -P '(?<=alias for ).*(?=.)' + snapp_address=$(host -t cname localhost.loki $IP | host -t cname localhost.loki 127.3.2.1 | awk '/alias for/ { print $6 }' # IP="127.3.2.1" # snapp_address=$(nslookup $IP | sed -n 's/.*arpa.*name = \(.*\)/\1/p')