not relaying empty branch
This commit is contained in:
parent
179bd5bc5d
commit
26fee3977d
|
@ -85,10 +85,15 @@ while true; do
|
||||||
|
|
||||||
|
|
||||||
############# PUBLISH IPFSNODEID BALISE
|
############# 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
|
# Scan local cache
|
||||||
ls ~/.zen/tmp/${IPFSNODEID}/
|
ls ~/.zen/tmp/${IPFSNODEID}/
|
||||||
BSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1)
|
BSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1)
|
||||||
|
|
||||||
|
|
||||||
## Merge with actual online version
|
## Merge with actual online version
|
||||||
ipfs get -o ~/.zen/tmp/${IPFSNODEID} /ipns/${IPFSNODEID}/
|
ipfs get -o ~/.zen/tmp/${IPFSNODEID} /ipns/${IPFSNODEID}/
|
||||||
NSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1)
|
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
|
&& ipfs name publish --allow-offline /ipfs/$ROUTING
|
||||||
|
|
||||||
end=`date +%s`
|
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.'
|
||||||
|
|
||||||
) &
|
) &
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue