From 8826624d6d77aeb4c27dbcacd892729423ca4b23 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 14 Jan 2024 15:31:02 +0100 Subject: [PATCH] Informations in SECTOR : /RSS/_all.json /COINS /ZEN /N --- RUNTIME/SECTOR.refresh.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/RUNTIME/SECTOR.refresh.sh b/RUNTIME/SECTOR.refresh.sh index 7c7e248ba..47bf68a91 100755 --- a/RUNTIME/SECTOR.refresh.sh +++ b/RUNTIME/SECTOR.refresh.sh @@ -159,16 +159,24 @@ for SECTOR in ${SECTORS[@]}; do combinedrss=("${RSSNODE[@]}" "${RSSWARM[@]}") RSSALL=($(echo "${combinedrss[@]}" | tr ' ' '\n' | sort -u)) + mkdir -p ~/.zen/tmp/${MOATS}/${SECTOR}/RSS + rm -f ~/.zen/tmp/${MOATS}/${SECTOR}/RSS/_all.json ################################## TRANSFER SIGNED TIDDLER IN SECTOR TW for RSS in ${RSSALL[@]}; do + ## Extract New Tiddlers and maintain fusion in Sector TW. ${MY_PATH}/../tools/RSS2UPlanetTW.sh "${RSS}" "${SECTOR}" "${MOATS}" "${INDEX}" + ## create sector RSS _all.json + cat ${RSS} >> ~/.zen/tmp/${MOATS}/${SECTOR}/RSS/_all.json done TOTL=$((${NL}+${NS})) ############################################################## + # Update COIN & ZEN value + echo ${COINS} > ~/.zen/tmp/${MOATS}/${SECTOR}/COINS + echo ${ZEN} > ~/.zen/tmp/${MOATS}/${SECTOR}/ZEN echo "Number of RSS : "${TOTL} - rm ~/.zen/tmp/${MOATS}/${SECTOR}/N_RSS* - echo ${TOTL} > ~/.zen/tmp/${MOATS}/${SECTOR}/N_RSS_${TOTL} + rm ~/.zen/tmp/${MOATS}/${SECTOR}/N_RSS* ## TODO REMOVE + echo ${TOTL} > ~/.zen/tmp/${MOATS}/${SECTOR}/N ########################################################################################### ## MAKE SECTOR PLANET WITH ASTONAUTENS LINKS