From 50ebc469ab781adcb011f3201af03b6856f7a8e0 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 21 Mar 2024 12:31:25 +0100 Subject: [PATCH] crochet or not crochet --- API/DRAGONS.sh | 4 ++-- RUNTIME/NODE.refresh.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API/DRAGONS.sh b/API/DRAGONS.sh index 814c8e107..12dd0768c 100755 --- a/API/DRAGONS.sh +++ b/API/DRAGONS.sh @@ -55,8 +55,8 @@ rm ~/.zen/tmp/DRAGONS.json if [[ ! -s ~/.zen/tmp/DRAGONS.json ]]; then echo " ## cat ***/GPS.json" - cat ~/.zen/tmp/${IPFSNODEID}/GPS.json 2>/dev/null | jq -c '. + {ipfsnodeid: "'$IPFSNODEID'"}' > ~/.zen/tmp/${MOATS}/gps.grid - cat ~/.zen/tmp/swarm/12D*/GPS.json 2>/dev/null | jq -c '. + {ipfsnodeid: "'$IPFSNODEID'"}' | sort -u >> ~/.zen/tmp/${MOATS}/gps.grid + cat ~/.zen/tmp/${IPFSNODEID}/GPS.json 2>/dev/null | jq -c '.[] + {ipfsnodeid: "'$IPFSNODEID'"}' > ~/.zen/tmp/${MOATS}/gps.grid + cat ~/.zen/tmp/swarm/12D*/GPS.json 2>/dev/null | jq -c '.[] + {ipfsnodeid: "'$IPFSNODEID'"}' | sort -u >> ~/.zen/tmp/${MOATS}/gps.grid cat ~/.zen/tmp/${MOATS}/gps.grid | jq -s '.' | sed -e 's/\[/[/' -e 's/\]/]/' -e 's/},{/},\n{/g' > ~/.zen/tmp/DRAGONS.json fi diff --git a/RUNTIME/NODE.refresh.sh b/RUNTIME/NODE.refresh.sh index 8ba33bd31..63381e282 100755 --- a/RUNTIME/NODE.refresh.sh +++ b/RUNTIME/NODE.refresh.sh @@ -73,7 +73,7 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then fi -## CLEANING SWARM 3 DAYS OLD +echo "## CLEANING SWARM 3 DAYS OLD" find ~/.zen/tmp/swarm/ -mtime +3 -type d -exec rm -Rf '{}' \; exit 0