From 84b841941aacb42a28c8abcd9643d483df9995c1 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 8 Mar 2024 15:40:26 +0100 Subject: [PATCH] extract ${PLAYER} Tiddler image --- tools/make_image_ipfs_index_carousel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/make_image_ipfs_index_carousel.sh b/tools/make_image_ipfs_index_carousel.sh index c91b76d1..f9cc2da3 100755 --- a/tools/make_image_ipfs_index_carousel.sh +++ b/tools/make_image_ipfs_index_carousel.sh @@ -57,7 +57,7 @@ if [[ ! -d $img_dir ]]; then if [[ -s ${INDEX} ]]; then # EXTRACT [tag[moa]] : ~/.zen/game/players/${PLAYER}/moa.jpg - tiddlywiki --load ${INDEX} --output ~/.zen/tmp --render '.' "${PLAYER}.moa.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[moa]]' + tiddlywiki --load ${INDEX} --output ~/.zen/tmp --render '.' "${PLAYER}.moa.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${PLAYER}" cat ~/.zen/tmp/${PLAYER}.moa.json | jq -r '.[].text' | base64 -d > ~/.zen/game/players/${PLAYER}/moa.jpg echo "DESSIN DE MOA : ~/.zen/game/players/${PLAYER}/moa.jpg" [[ $(file -b ~/.zen/game/players/${PLAYER}/moa.jpg | cut -d ' ' -f 1) == "JPEG" ]] \