diff --git a/G1VOEUX.sh b/G1VOEUX.sh index 020a56ff..5d8974a3 100755 --- a/G1VOEUX.sh +++ b/G1VOEUX.sh @@ -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..." diff --git a/astroscan.sh b/astroscan.sh index 0d1cdc93..b69723a6 100755 --- a/astroscan.sh +++ b/astroscan.sh @@ -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 diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index a3b03767..3b0c4def 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -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" diff --git a/tools/VOEUX.refresh.sh b/tools/VOEUX.refresh.sh index 8b93d7ae..bf4e5e19 100755 --- a/tools/VOEUX.refresh.sh +++ b/tools/VOEUX.refresh.sh @@ -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