From 2d7e3b53be606cb46b189ad4287ba11015ef87f3 Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 18 May 2021 01:48:22 +0200 Subject: [PATCH] Add to bootstrap if XID exists --- zen/ipfs_SWARM_refresh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 1e662c5..4929687 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -89,7 +89,8 @@ do continue fi fi - [[ "$XID" != "" ]] && ipfs bootstrap add "$peerline" + ## Add to bootstrap if XID exists + [[ "$XID" != "" ]] && ipfs bootstrap add "$peerline" || ipfs bootstrap rm "$peerline" echo "OK Friend REFRESH /ipns/$ipfsnodeid INTO ~/.zen/ipfs_swarm/" $MY_PATH/tools/timeout.sh -t 12 ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$ipfsnodeid if [ $? != 0 ]; then