AVOID EMPTY CURCHAIN

This commit is contained in:
fred 2023-04-08 14:37:21 +02:00
parent c6c864d612
commit 1baf358815
3 changed files with 6 additions and 5 deletions

View File

@ -110,7 +110,7 @@ for PLAYER in ${PLAYERONE[@]}; do
--render '.' 'Astroport.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'Astroport'
ASTROPORT=$(cat ~/.zen/tmp/${MOATS}/Astroport.json | jq -r .[].astroport)
CURCHAIN=$(cat ~/.zen/tmp/${MOATS}/Astroport.json | jq -r .[].chain | rev | cut -f 1 -d '/' | rev) # Remove "/ipfs/" part
[[ $CURCHAIN == "" ]] && CURCHAIN="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # AVOID EMPTY
IPNSTAIL=$(echo ${ASTROPORT} | rev | cut -f 1 -d '/' | rev) # Remove "/ipns/" part
echo "TW ASTROPORT GATEWAY : ${ASTROPORT}"

View File

@ -194,6 +194,7 @@ do
| sed -e "s~_LIBRA_~$(myIpfsGw)~g" \
-e "s~_G1VOEU_~${WISHNAME}~g" \
-e "s~_PLAYER_~${PLAYER}~g" \
-e "s~_____~${COINS}~g" \
-e "s~_G1PUB_~${G1PUB}~g" \
-e "s~_VOEUNS_~${VOEUNS}~g" \
-e "s~_ASTRONAUTENS_~${ASTRONAUTENS}~g" \

View File

@ -107,8 +107,8 @@
#green {
background: black;
position: absolute;
top: 2%;
right: 2%;
top: 12%;
right: 3%;
width: 45%;
}
@ -223,9 +223,9 @@
<img src="http://127.0.0.1:8080/ipfs/QmWUpjGFuF7NhpXgkrCmx8Tbu4xjcFpKhE7Bsvt6HeKYxu/g1ticket_qrcode.png" width=300>
</a>
</p>
<h2>:⚡:~ <a href="https://cesium.app">Cesium </a> ~:📱:</h2>
<h2>:⚡:~ <a href="https://cesium.app">Cesium </a> ~:📱: _____ </h2>
<p>
🏡 : <div id="astropub"><a target="gchange" href="https://data.gchange.fr/user/profile/_G1PUB_/_share">_G1PUB_</a></div>
<div id="astropub"> 🏡 : <a target="gchange" href="https://data.gchange.fr/user/profile/_G1PUB_/_share">_G1PUB_</a></div>
</p>
</div>