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