fixing index.html

This commit is contained in:
fred 2022-08-23 19:59:32 +02:00
parent 431c462e94
commit c37389b57d
4 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ echo
rm -Rf ~/.zen/tmp/TW rm -Rf ~/.zen/tmp/TW
ipfs --timeout 6s get -o ~/.zen/tmp/TW /ipns/$ASTRONAUTENS ipfs --timeout 6s get -o ~/.zen/tmp/TW /ipns/$ASTRONAUTENS
CHECK=(ls ~/.zen/tmp/TW/) && mv ~/.zen/tmp/TW/$CHECK ~/.zen/tmp/TW/index.html CHECK=$(ls ~/.zen/tmp/TW/) && mv ~/.zen/tmp/TW/$CHECK ~/.zen/tmp/TW/index.html
if [ ! -f ~/.zen/tmp/TW/index.html ]; then if [ ! -f ~/.zen/tmp/TW/index.html ]; then
echo "ERROR IPNS TIMEOUT. Restoring local backup..." echo "ERROR IPNS TIMEOUT. Restoring local backup..."

View File

@ -106,7 +106,7 @@ sudo cat /dev/ttyACM0 | while read line; do
# REFRESH IPNS # REFRESH IPNS
ipfs get -o ~/.zen/game/world/$G1PUB /ipns/$IPNSK ipfs get -o ~/.zen/game/world/$G1PUB /ipns/$IPNSK
CHECK=(ls ~/.zen/game/world/$G1PUB/) && mv ~/.zen/game/world/$G1PUB/$CHECK ~/.zen/game/world/$G1PUB/index.html CHECK=$(ls ~/.zen/game/world/$G1PUB/) && mv ~/.zen/game/world/$G1PUB/$CHECK ~/.zen/game/world/$G1PUB/index.html
fi fi
## CREATE GCHANGE AD ## CREATE GCHANGE AD

View File

@ -30,7 +30,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then
ipfs key list -l | grep -w $GNS ipfs key list -l | grep -w $GNS
ipfs key list -l | grep -w $GNS | wc -l ipfs key list -l | grep -w $GNS | wc -l
CHECK=(ls ~/.zen/tmp/TW/) && mv ~/.zen/tmp/TW/$CHECK ~/.zen/tmp/TW/index.html CHECK=$(ls ~/.zen/tmp/TW/) && mv ~/.zen/tmp/TW/$CHECK ~/.zen/tmp/TW/index.html
if [ ! -f ~/.zen/tmp/TW/index.html ]; then if [ ! -f ~/.zen/tmp/TW/index.html ]; then
echo "Première connexion? Appuyez sur ENTRER pour créer un nouveau TW Astronaute" echo "Première connexion? Appuyez sur ENTRER pour créer un nouveau TW Astronaute"

View File

@ -32,7 +32,7 @@ do
ipfs --timeout 12s get -o ~/.zen/tmp/work /ipns/$voeuns ipfs --timeout 12s get -o ~/.zen/tmp/work /ipns/$voeuns
# CORRECT FileName # CORRECT FileName
CHECK=(ls ~/.zen/tmp/work/) && mv ~/.zen/tmp/work/$CHECK ~/.zen/tmp/work/index.html CHECK=$(ls ~/.zen/tmp/work/) && mv ~/.zen/tmp/work/$CHECK ~/.zen/tmp/work/index.html
if [[ ! -f ~/.zen/tmp/work/index.html ]]; then if [[ ! -f ~/.zen/tmp/work/index.html ]]; then
echo "UNAVAILABLE WISH! If you want to remove $W $voeu" echo "UNAVAILABLE WISH! If you want to remove $W $voeu"
@ -69,7 +69,7 @@ for PLAYER in $(ls ~/.zen/game/players/); do
rm -Rf ~/.zen/tmp/astro rm -Rf ~/.zen/tmp/astro
ipfs --timeout 12s get -o ~/.zen/tmp/astro /ipns/$ASTRONAUTENS ipfs --timeout 12s get -o ~/.zen/tmp/astro /ipns/$ASTRONAUTENS
CHECK=(ls ~/.zen/tmp/astro/) && mv ~/.zen/tmp/astro/$CHECK ~/.zen/tmp/astro/index.html CHECK=$(ls ~/.zen/tmp/astro/) && mv ~/.zen/tmp/astro/$CHECK ~/.zen/tmp/astro/index.html
if [ ! -f ~/.zen/tmp/astro/index.html ]; then if [ ! -f ~/.zen/tmp/astro/index.html ]; then
echo "ERROR IPNS TIMEOUT. Using local backup..." echo "ERROR IPNS TIMEOUT. Using local backup..."
else else