From 1e8de52e8b32a1771d4e0b368133eb8ac561382a Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 27 Jun 2024 17:30:19 +0200 Subject: [PATCH] =?UTF-8?q?one=20line=20replace=20(le=20saut=20=C3=A0=20la?= =?UTF-8?q?=20ligne=20casse=20le=20json)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RUNTIME/PLAYER.refresh.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index 5620fe46..282ce6c7 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -415,17 +415,15 @@ for PLAYER in ${PLAYERONE[@]}; do echo "${UPLAYERSTIDS[@]}" UPLAYERSTIDS_STR="" for item in "${UPLAYERSTIDS[@]}"; do - UPLAYERSTIDS_STR+="\n* $item" + UPLAYERSTIDS_STR+=" * $item \n" done - # Trim leading space - UPLAYERSTIDS_STR="${UPLAYERSTIDS_STR# }" ###################################### # (RE)MAKE "SECTORTW_NEWS" TIDDLER cat ${MY_PATH}/../templates/data/SECTORTW_NEWS.json \ | sed -e "s~_SECTOR_~${SECTOR}~g" \ -e "s~_MOATS_~${MOATS}~g" \ -e "s~_UPLANET_~https://qo-op.com~g" \ - -e "s~_UPLAYERSTIDS_~${UPLAYERSTIDS_STR}~g" \ + -z "s~_UPLAYERSTIDS_~${UPLAYERSTIDS_STR}~g" \ -e "s~_SECTORTW_~${SECTORIPNS}/TW~g" \ > ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json