bug corrected

This commit is contained in:
fred 2024-07-01 20:38:21 +02:00
parent 09ac5d78b0
commit dfd3aa1082
2 changed files with 3 additions and 8 deletions

View File

@ -29,7 +29,6 @@ echo "$ME RUNNING"
INDEX="$1"
[[ ! ${INDEX} ]] && INDEX="$HOME/.zen/game/players/.current/ipfs/moa/index.html"
[[ ! -s ${INDEX} ]] && echo "ERROR - Please provide path to source TW index.html" && exit 1
[[ ! -s ${INDEX} ]] && echo "ERROR - Fichier TW absent. ${INDEX}" && exit 1
PLAYER="$2"
[[ ! ${PLAYER} ]] && PLAYER="$(cat ~/.zen/game/players/.current/.player 2>/dev/null)"
@ -52,11 +51,11 @@ IPUBKEY="$4"
TH="$5"
[[ ! ${TH} ]] && echo "ERROR 5 - MISSING IPFS CID !" && exit 1
TRAIL="$6" ## ::G1PUB
TRAIL="$6" ## :G1PUB
API=$(echo ${TRAIL} | cut -d ':' -f 1)
[[ -z $API ]] && API="/g1vlog"
GIPUBKEY=$(echo ${TRAIL} | cut -d ':' -f 2-)
GIPUBKEY=$(echo ${TRAIL} | cut -d ':' -f 2)
[[ ! -z ${GIPUBKEY} ]] \
&& DPUBKEY=${GIPUBKEY} \
|| DPUBKEY=${IPUBKEY}

View File

@ -413,10 +413,6 @@ for PLAYER in ${PLAYERONE[@]}; do
################## PREPARE LIST TO INSERT IN SECTORTW_NEWS TID
echo "${UPLAYERSTIDS[@]}"
UPLAYERSTIDS_STR=""
for item in "${UPLAYERSTIDS[@]}"; do
UPLAYERSTIDS_STR+=" - $item "
done
######################################
# (RE)MAKE "SECTORTW_NEWS" TIDDLER
@ -424,7 +420,7 @@ for PLAYER in ${PLAYERONE[@]}; do
-e "s~_SECTOR_~${SECTOR}~g" \
-e "s~_MOATS_~${MOATS}~g" \
-e "s~_UPLANET_~https://qo-op.com~g" \
-e "s~_UPLAYERSTIDS_~$(echo -n "$UPLAYERSTIDS_STR")~" \
-e "s~_UPLAYERSTIDS_~${UPLAYERSTIDS[*]}~" \
-e "s~_SECTORTW_~${SECTORIPNS}/TW~g" \
${MY_PATH}/../templates/data/SECTORTW_NEWS.json > ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json