cache search & find less verbose

This commit is contained in:
fred 2023-10-16 21:00:48 +02:00
parent f1b48fb7d1
commit 4bf875dabf
1 changed files with 5 additions and 4 deletions

View File

@ -96,12 +96,13 @@ while read LINE;
###################################################################
## Search for $YID.TW.json TIDDLER in local & MySwarm cache
echo "--- CACHE SEARCH FOR $YID ---" && TIDDLER=$(ls -t "${HOME}/.zen/game/players/"*"/G1CopierYoutube/$YID.TW.json" 2>/dev/null | head -n 1)
#~ echo "--- CACHE SEARCH FOR $YID ---"
TIDDLER=$(ls -t "${HOME}/.zen/game/players/"*"/G1CopierYoutube/$YID.TW.json" 2>/dev/null | head -n 1)
## TODO CORRECT - CACHE CHANGED -
[[ ! $TIDDLER ]] && TIDDLER=$(ls -t "${HOME}/.zen/tmp/${IPFSNODEID}/G1CopierYoutube/"*"/$YID.TW.json" 2>/dev/null | head -n 1)
[[ ! $TIDDLER ]] && TIDDLER=$(ls -t "${HOME}/.zen/tmp/swarm/"*"/G1CopierYoutube/"*"/$YID.TW.json" 2>/dev/null | head -n 1)
[[ $TIDDLER ]] && echo "Tiddler Found in CACHE : $TIDDLER" \
|| echo "EMPTY."
#~ [[ $TIDDLER ]] && echo "Tiddler Found in CACHE : $TIDDLER" \
#~ || echo "EMPTY."
###################################################################
if [[ ! ${TIDDLER} ]]; then
@ -258,7 +259,7 @@ if [[ ! ${TIDDLER} ]]; then
else
###################################################################
echo "${TIDDLER} FOUND"
#~ echo "${TIDDLER} FOUND"
###################################################################
## TODO : ADD EMAIL TAG ( TIMESTAMP & ADD SIGNATURE over existing ones)
continue