allow config to fail as we have no empty default
Lucas Molas committed
Mar 21, 2022 at 19:03 UTC
f62bd64fdb840809a211984ec3c6499abc62690b
1 file changed
+1
-1
test/sharness/t0171-peering.sh
+1
-1
@@ -33,7 +33,7 @@ peer_addrs() {
33
peer() {
34
PEER1="$1" &&
35
PEER2="$2" &&
36
- PEER_LIST="$(ipfsi "$PEER1" config Peering.Peers)" &&
36
+ PEER_LIST="$(ipfsi "$PEER1" config Peering.Peers || true)" &&
37
{ [[ "$PEER_LIST" == "null" ]] || PEER_LIST_INNER="${PEER_LIST:1:-1}"; } &&
38
ADDR_INFO="$(printf '[%s{"ID": "%s", "Addrs": %s}]' \
39
"${PEER_LIST_INNER:+${PEER_LIST_INNER},}" \