From 9f4b2763f119405c5ee2a128c80adbd83432956f Mon Sep 17 00:00:00 2001 From: qo-op Date: Wed, 16 Jun 2021 01:24:02 +0200 Subject: [PATCH] protect ipfs timeout --- zen/ipns_TAG_refresh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zen/ipns_TAG_refresh.sh b/zen/ipns_TAG_refresh.sh index 7007f52..ded442a 100755 --- a/zen/ipns_TAG_refresh.sh +++ b/zen/ipns_TAG_refresh.sh @@ -194,9 +194,9 @@ for ipnslink in $(ls ~/.zen/PIN/*/IPNSLINK); [[ ! $(ipfs key list | grep ${mediakey}) ]] && echo "ERROR MISSING MEDIAKEY" && continue ## GET ACTUAL IPNS .chain VALUE - actual=$(ipfs --timeout 10s cat /ipns/$ipnsid/.chain) + actual=$(ipfs --timeout 12s cat /ipns/$ipnsid/.chain) ## PUBLISH IT - ipfs --timeout 20s name publish -k ${mediakey} --quieter /ipfs/${actual} + [[ $actual ]] && ipfs --timeout 20s name publish -k ${mediakey} --quieter /ipfs/${actual} echo "REFRESHED https://tube.copylaradio.com/ipns/$ipnsid TO /ipfs/$actual" done