Missing /
This commit is contained in:
parent
f6d7648619
commit
0122502ea3
|
@ -35,7 +35,7 @@ echo
|
|||
########################################################
|
||||
# BACKING UP Astronaute TW IPNS
|
||||
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
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ sudo cat /dev/ttyACM0 | while read line; do
|
|||
else
|
||||
echo "Canal TW existant"
|
||||
# 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
|
||||
fi
|
||||
|
|
|
@ -24,7 +24,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then
|
|||
GNS=$(ipfs key import gchange -f pem-pkcs8-cleartext ~/.zen/tmp/gchange.key )
|
||||
|
||||
rm -Rf ~/.zen/tmp/TW
|
||||
ipfs --timeout 5s get -o ~/.zen/tmp/TW /ipns/$GNS
|
||||
ipfs --timeout 5s get -o ~/.zen/tmp/TW/ /ipns/$GNS
|
||||
|
||||
# Combien de clefs?
|
||||
ipfs key list -l | grep -w $GNS
|
||||
|
|
|
@ -29,7 +29,7 @@ do
|
|||
mkdir -p ~/.zen/tmp/work
|
||||
|
||||
echo "Getting latest online TW..."
|
||||
ipfs --timeout 12s get -o ~/.zen/tmp/work /ipns/$voeuns
|
||||
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
|
||||
|
@ -68,7 +68,7 @@ for PLAYER in $(ls ~/.zen/game/players/); do
|
|||
## REFRESH ASTRONAUTE TW
|
||||
ASTRONAUTENS=$(cat ~/.zen/game/players/$PLAYER/.playerns)
|
||||
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
|
||||
if [ ! -f ~/.zen/tmp/astro/index.html ]; then
|
||||
|
|
Loading…
Reference in New Issue