fixing index.html
This commit is contained in:
parent
431c462e94
commit
c37389b57d
|
@ -37,7 +37,7 @@ echo
|
|||
rm -Rf ~/.zen/tmp/TW
|
||||
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
|
||||
echo "ERROR IPNS TIMEOUT. Restoring local backup..."
|
||||
|
|
|
@ -106,7 +106,7 @@ sudo cat /dev/ttyACM0 | while read line; do
|
|||
# REFRESH IPNS
|
||||
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
|
||||
|
||||
## CREATE GCHANGE AD
|
||||
|
|
|
@ -30,7 +30,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then
|
|||
ipfs key list -l | grep -w $GNS
|
||||
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
|
||||
echo "Première connexion? Appuyez sur ENTRER pour créer un nouveau TW Astronaute"
|
||||
|
|
|
@ -32,7 +32,7 @@ do
|
|||
ipfs --timeout 12s get -o ~/.zen/tmp/work /ipns/$voeuns
|
||||
|
||||
# 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
|
||||
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
|
||||
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
|
||||
echo "ERROR IPNS TIMEOUT. Using local backup..."
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue