From b2a03f0f4ee884baf4b8da2cca12cb13ebfd77cb Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 16 Mar 2024 15:36:19 +0100 Subject: [PATCH] _*_ TW _*_*_ --- RUNTIME/SECTOR.refresh.sh | 2 +- command.sh | 10 +++++++--- tools/make_image_ipfs_index_carousel.sh | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/RUNTIME/SECTOR.refresh.sh b/RUNTIME/SECTOR.refresh.sh index 2c580d0c..6e13b821 100755 --- a/RUNTIME/SECTOR.refresh.sh +++ b/RUNTIME/SECTOR.refresh.sh @@ -78,7 +78,7 @@ for SECTOR in ${SECTORS[@]}; do ############ 101 ZEN REFILL ?! CURRENT=$(readlink ~/.zen/game/players/.current | rev | cut -d '/' -f 1 | rev) [[ ${COINS} == "" || ${COINS} == "null" ]] \ - && [[ ${ZEN} -lt 101 && ${CURRENT} != "" ]] \ + && [[ ${ZEN} -lt 100 && ${CURRENT} != "" ]] \ && MIUSER=$(${MY_PATH}/../tools/clyuseryomail.sh "${CURRENT}") \ && ${MY_PATH}/../tools/PAY4SURE.sh "${HOME}/.zen/game/players/.current/secret.dunikey" "11.1" "${G1PUB}" "UPLANET:101ZEN:${SECTOR}:${MIUSER}" \ && echo "UPLANET:101:${SECTOR}:${MIUSER}" && echo " ~~~ (♥‿‿♥) ~~ ${SECTOR} ~~ (♥‿‿♥) ~~~ " diff --git a/command.sh b/command.sh index 6d463bb3..9e32d565 100755 --- a/command.sh +++ b/command.sh @@ -12,7 +12,12 @@ TS=$(date -u +%s%N | cut -b1-13) MOATS=$(date -u +"%Y%m%d%H%M%S%4N") #~ mkdir -p ~/.zen/tmp/${MOATS} -CURRENT=$(cat ~/.zen/game/players/.current/.player) +### CHECK and CORRECT .current +CURRENT=$(cat ~/.zen/game/players/.current/.player 2>/dev/null) +[[ ! ${CURRENT} ]] \ + && lastplayer=$(ls -t ~/.zen/game/players 2>/dev/null | grep "@" | head -n 1) \ + && [[ ${lastplayer} ]] && rm ~/.zen/game/players/.current \ + && ln -s ~/.zen/game/players/${lastplayer} ~/.zen/game/players/.current && CURRENT=${lastplayer} echo ' _ ____ _____ ____ ___ ____ ___ ____ _____ ___ _ _ _____ @@ -24,8 +29,7 @@ echo ' Astroport is a Web3 engine running UPlanet hosting TW5s on IPFS, and more... @@@@@@@@@@@@@@@@@@ -ASTROPORT -DRAGON = ${CURRENT} +ADMIN = '${CURRENT}' @@@@@@@@@@@@@@@@@@' echo diff --git a/tools/make_image_ipfs_index_carousel.sh b/tools/make_image_ipfs_index_carousel.sh index 5f2ca41e..20a5fb6b 100755 --- a/tools/make_image_ipfs_index_carousel.sh +++ b/tools/make_image_ipfs_index_carousel.sh @@ -85,7 +85,7 @@ if [[ ! -d $img_dir ]]; then echo "" >> ~/.zen/tmp/carousel/${pub}.button done < ~/.zen/tmp/${PLAYER}.g1wishes.txt fi - echo "" >> ~/.zen/tmp/carousel/${pub}.button + echo "" >> ~/.zen/tmp/carousel/${pub}.button ##################