PLAYER.refresh + Updating G1VOEU Tiddlers
This commit is contained in:
parent
0fa7e884e0
commit
3b42354523
|
@ -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
|
[[ ! -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
|
cp ~/.zen/tmp/g1barre.png ~/.zen/game/world/$g1wish/g1barre.png
|
||||||
##################################################################"
|
##################################################################"
|
||||||
echo "Updating PLAYER $PLAYER TW"
|
|
||||||
OLDIG1BAR=$(cat ~/.zen/game/world/$g1wish/.ig1barre)
|
OLDIG1BAR=$(cat ~/.zen/game/world/$g1wish/.ig1barre)
|
||||||
|
|
||||||
##################################################################"
|
##################################################################"
|
||||||
IG1BAR=$(ipfs add -Hq ~/.zen/game/world/$g1wish/g1barre.png | tail -n 1)
|
IG1BAR=$(ipfs add -Hq ~/.zen/game/world/$g1wish/g1barre.png | tail -n 1)
|
||||||
if [[ $OLDIG1BAR != "" && $OLDIG1BAR != $IG1BAR ]]; then # Update
|
if [[ $OLDIG1BAR != "" && $OLDIG1BAR != $IG1BAR ]]; then # Update
|
||||||
|
echo "NEW VALUE !! Updating G1VOEU Tiddler /ipfs/$IG1BAR"
|
||||||
|
|
||||||
## Replace IG1BAR tiddler ipfs value
|
## Replace IG1BAR tiddler ipfs value
|
||||||
sed -i "s~${OLDIG1BAR}~${IG1BAR}~g" ~/.zen/game/players/$PLAYER/ipfs/moa/index.html
|
sed -i "s~${OLDIG1BAR}~${IG1BAR}~g" ~/.zen/game/players/$PLAYER/ipfs/moa/index.html
|
||||||
echo $IG1BAR > ~/.zen/game/world/$g1wish/.ig1barre
|
echo $IG1BAR > ~/.zen/game/world/$g1wish/.ig1barre
|
||||||
|
@ -127,10 +128,6 @@ fi
|
||||||
##################################################################"
|
##################################################################"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue