mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-02 13:03:07 +00:00
fix: handling comman in underlay address array (#13)
This commit is contained in:
parent
2feb3b35a7
commit
1719ebda94
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user