From 26fee3977d4669cec2a31a2a9a263af45cf718b9 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 19 Nov 2022 19:07:27 +0100 Subject: [PATCH] not relaying empty branch --- _12345.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_12345.sh b/_12345.sh index f60f5867..4b7e1c73 100755 --- a/_12345.sh +++ b/_12345.sh @@ -85,10 +85,15 @@ while true; do ############# PUBLISH IPFSNODEID BALISE + # Clean Empty + du -b ~/.zen/tmp/${IPFSNODEID} > /tmp/du + while read branch; do [[ $branch =~ "4096" ]] && rmdir $(echo $branch | cut -f 2 -d ' '); done < /tmp/du + # Scan local cache ls ~/.zen/tmp/${IPFSNODEID}/ BSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1) + ## Merge with actual online version ipfs get -o ~/.zen/tmp/${IPFSNODEID} /ipns/${IPFSNODEID}/ NSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1) @@ -100,7 +105,7 @@ while true; do && ipfs name publish --allow-offline /ipfs/$ROUTING end=`date +%s` - echo '(*__*) MySwam Update ($BSIZE B) duration was '`expr $end - $start`' seconds.' + echo "(*__*) MySwam Update ($BSIZE B) duration was "`expr $end - $start`' seconds.' ) &