From 1719ebda946e645c6da517d6448107ea41d97522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Wed, 5 May 2021 14:03:17 +0200 Subject: [PATCH] fix: handling comman in underlay address array (#13) --- scripts/bee.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bee.sh b/scripts/bee.sh index ebaa1c8..d5129e3 100755 --- a/scripts/bee.sh +++ b/scripts/bee.sh @@ -41,7 +41,7 @@ fetch_queen_underlay_addr() { if [[ -n "$QUEEN_UNDERLAY_ADDRESS" ]] ; then return; fi while : ; do - QUEEN_UNDERLAY_ADDRESS=$(curl -s localhost:1635/addresses | python -mjson.tool 2>&1 | grep "/ip4/" | awk '!/127.0.0.1/' | xargs) + QUEEN_UNDERLAY_ADDRESS=$(curl -s localhost:1635/addresses | python -mjson.tool 2>&1 | grep "/ip4/" | awk '!/127.0.0.1/' | sed 's/,$//' | xargs) if [[ -z "$QUEEN_UNDERLAY_ADDRESS" ]] ; then echo "Waiting for the Queen initialization..." sleep 5