From 5a4468ff07ad5eedef59fb0210edf67cbc7a277f Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 7 Sep 2023 02:07:41 +0200 Subject: [PATCH] fixes --- RUNTIME/PLAYER.refresh.sh | 7 ++++--- RUNTIME/VOEUX.refresh.sh | 5 +++++ tools/MAP.refresh.sh | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index 02d14cdf..fd855314 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -109,9 +109,10 @@ for PLAYER in ${PLAYERONE[@]}; do player=$(cat ~/.zen/tmp/${MOATS}/MadeInZion.json | jq -r .[].player) - [[ $player == ${PLAYER} ]] \ - && echo "${PLAYER} OFFICIAL TW - (⌐■_■) -" \ - || ( echo "> BAD PLAYER=$player in TW" && continue) + [[ $player != ${PLAYER} ]] \ + && echo "> BAD PLAYER=$player in TW" \ + && continue \ + || echo "${PLAYER} OFFICIAL TW - (⌐■_■) -" ## GET "Astroport" TIDDLER tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \ diff --git a/RUNTIME/VOEUX.refresh.sh b/RUNTIME/VOEUX.refresh.sh index f0e7784a..a0a0fea2 100755 --- a/RUNTIME/VOEUX.refresh.sh +++ b/RUNTIME/VOEUX.refresh.sh @@ -37,6 +37,11 @@ INDEX="$3" mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu +############################### +####### NEED G1 TO RUN + [[ ${COINS} == "null" || ${COINS} == "" ]] \ + && echo ">>> ${COINS} : DESACTIVATED - NEED G1 TO REFRESH WISH - EXIT - " \ + && exit 0 echo "%% $COINS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" ############################### ## EXTRACT G1Voeu from PLAYER TW diff --git a/tools/MAP.refresh.sh b/tools/MAP.refresh.sh index ffb54466..0661bb80 100755 --- a/tools/MAP.refresh.sh +++ b/tools/MAP.refresh.sh @@ -31,7 +31,7 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then ## COPY COINS VALUE OF THE DAY mkdir -p ~/.zen/tmp/${IPFSNODEID}/COINS/ - mv ~/.zen/tmp/${IPFSNODEID}/*.COINS ~/.zen/tmp/${IPFSNODEID}/COINS/ ## CORRECT FORMAT : TO REMOVE + mv ~/.zen/tmp/${IPFSNODEID}/*.COINS ~/.zen/tmp/${IPFSNODEID}/COINS/ 2>/dev/null ## CORRECT FORMAT : TO REMOVE cp -f ~/.zen/tmp/coucou/*.COINS ~/.zen/tmp/${IPFSNODEID}/COINS/ ## COPY FRIENDS