bug corrected
This commit is contained in:
parent
09ac5d78b0
commit
dfd3aa1082
@ -29,7 +29,6 @@ echo "$ME RUNNING"
|
|||||||
INDEX="$1"
|
INDEX="$1"
|
||||||
[[ ! ${INDEX} ]] && INDEX="$HOME/.zen/game/players/.current/ipfs/moa/index.html"
|
[[ ! ${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 - Please provide path to source TW index.html" && exit 1
|
||||||
[[ ! -s ${INDEX} ]] && echo "ERROR - Fichier TW absent. ${INDEX}" && exit 1
|
|
||||||
|
|
||||||
PLAYER="$2"
|
PLAYER="$2"
|
||||||
[[ ! ${PLAYER} ]] && PLAYER="$(cat ~/.zen/game/players/.current/.player 2>/dev/null)"
|
[[ ! ${PLAYER} ]] && PLAYER="$(cat ~/.zen/game/players/.current/.player 2>/dev/null)"
|
||||||
@ -52,11 +51,11 @@ IPUBKEY="$4"
|
|||||||
TH="$5"
|
TH="$5"
|
||||||
[[ ! ${TH} ]] && echo "ERROR 5 - MISSING IPFS CID !" && exit 1
|
[[ ! ${TH} ]] && echo "ERROR 5 - MISSING IPFS CID !" && exit 1
|
||||||
|
|
||||||
TRAIL="$6" ## ::G1PUB
|
TRAIL="$6" ## :G1PUB
|
||||||
API=$(echo ${TRAIL} | cut -d ':' -f 1)
|
API=$(echo ${TRAIL} | cut -d ':' -f 1)
|
||||||
[[ -z $API ]] && API="/g1vlog"
|
[[ -z $API ]] && API="/g1vlog"
|
||||||
|
|
||||||
GIPUBKEY=$(echo ${TRAIL} | cut -d ':' -f 2-)
|
GIPUBKEY=$(echo ${TRAIL} | cut -d ':' -f 2)
|
||||||
[[ ! -z ${GIPUBKEY} ]] \
|
[[ ! -z ${GIPUBKEY} ]] \
|
||||||
&& DPUBKEY=${GIPUBKEY} \
|
&& DPUBKEY=${GIPUBKEY} \
|
||||||
|| DPUBKEY=${IPUBKEY}
|
|| DPUBKEY=${IPUBKEY}
|
||||||
|
@ -413,10 +413,6 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
|
|
||||||
################## PREPARE LIST TO INSERT IN SECTORTW_NEWS TID
|
################## PREPARE LIST TO INSERT IN SECTORTW_NEWS TID
|
||||||
echo "${UPLAYERSTIDS[@]}"
|
echo "${UPLAYERSTIDS[@]}"
|
||||||
UPLAYERSTIDS_STR=""
|
|
||||||
for item in "${UPLAYERSTIDS[@]}"; do
|
|
||||||
UPLAYERSTIDS_STR+=" - $item "
|
|
||||||
done
|
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# (RE)MAKE "SECTORTW_NEWS" TIDDLER
|
# (RE)MAKE "SECTORTW_NEWS" TIDDLER
|
||||||
@ -424,7 +420,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
-e "s~_SECTOR_~${SECTOR}~g" \
|
-e "s~_SECTOR_~${SECTOR}~g" \
|
||||||
-e "s~_MOATS_~${MOATS}~g" \
|
-e "s~_MOATS_~${MOATS}~g" \
|
||||||
-e "s~_UPLANET_~https://qo-op.com~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" \
|
-e "s~_SECTORTW_~${SECTORIPNS}/TW~g" \
|
||||||
${MY_PATH}/../templates/data/SECTORTW_NEWS.json > ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json
|
${MY_PATH}/../templates/data/SECTORTW_NEWS.json > ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user