From 3b42354523b070fdfa8e6fa5efe795bd04e3e2bb Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 1 Sep 2022 03:01:01 +0200 Subject: [PATCH] PLAYER.refresh + Updating G1VOEU Tiddlers --- tools/PLAYER.refresh.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/PLAYER.refresh.sh b/tools/PLAYER.refresh.sh index bbf4ab40..360ab82a 100755 --- a/tools/PLAYER.refresh.sh +++ b/tools/PLAYER.refresh.sh @@ -64,12 +64,13 @@ for g1wish in $(ls ~/.zen/game/players/$PLAYER/voeux/); do [[ ! -s ~/.zen/tmp/g1barre.png ]] && echo "No Image ! ERROR. PLEASE VERIFY NETWORK LOCATION FOR G1BARRE" && continue cp ~/.zen/tmp/g1barre.png ~/.zen/game/world/$g1wish/g1barre.png ##################################################################" - echo "Updating PLAYER $PLAYER TW" OLDIG1BAR=$(cat ~/.zen/game/world/$g1wish/.ig1barre) ##################################################################" IG1BAR=$(ipfs add -Hq ~/.zen/game/world/$g1wish/g1barre.png | tail -n 1) if [[ $OLDIG1BAR != "" && $OLDIG1BAR != $IG1BAR ]]; then # Update + echo "NEW VALUE !! Updating G1VOEU Tiddler /ipfs/$IG1BAR" + ## Replace IG1BAR tiddler ipfs value sed -i "s~${OLDIG1BAR}~${IG1BAR}~g" ~/.zen/game/players/$PLAYER/ipfs/moa/index.html echo $IG1BAR > ~/.zen/game/world/$g1wish/.ig1barre @@ -127,10 +128,6 @@ fi ##################################################################" - - - - done