From 3ce5fe580fa56c98167b6d69b457535d9175079f Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 13 Apr 2020 19:18:21 +0200 Subject: [PATCH] $HOME --- zen/ipfs_SWARM_refresh.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 250ed10..e21ba3c 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -36,7 +36,7 @@ _|_| | __) __)\/\//--\| \| | | \|_| | \|___)| | ' # GET IPNS published wallets from ALL SWARM NODES ## TODO: IF NODES are MISSING, check ./wallets_swarm/.QmNODES... -ipfs get --output=~/.zen/ipfs_swarm/ /ipns/$ipfsnodeid +ipfs get --output=$HOME/.zen/ipfs_swarm/ /ipns/$ipfsnodeid count=1 # Search for All peers Nodes. ## TODO: To be changed when Swarm is too big or not expendanding #for id in ./wallets/.Qm*/; # Alternative search @@ -45,7 +45,7 @@ do count=$((count+1)) id=$(echo $id | cut -d '.' -f 3 | cut -d '/' -f 1) echo "Refreshing ~/.zen/ipfs_swarm/.$id" - rm -Rf ~/.zen/ipfs_swarm/.$id - $MY_PATH/tools/timeout.sh -t 10 ipfs get --output=~/.zen/ipfs_swarm/ /ipns/$id + rm -Rf $HOME/.zen/ipfs_swarm/.$id + $MY_PATH/tools/timeout.sh -t 10 ipfs get --output=$HOME/.zen/ipfs_swarm/ /ipns/$id done