From b5c21d825c4581ba27caf2a6176cc4ad23aceb42 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 18 Oct 2023 02:24:23 +0200 Subject: [PATCH] "" --- tools/RSS2UPlanetTW.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/RSS2UPlanetTW.sh b/tools/RSS2UPlanetTW.sh index 616dccd3..f059ef0d 100755 --- a/tools/RSS2UPlanetTW.sh +++ b/tools/RSS2UPlanetTW.sh @@ -21,14 +21,14 @@ MOATS=$3 echo ${RSS} titles=$(cat "${RSS}" | jq -r '.[] | .title') -for title in $titles; do +for title in "$titles"; do ## CHECK FOR TIDDLER WITH SAME TITTLE IN SECTOR TW rm -f ~/.zen/tmp/${MOATS}/TMP.json tiddlywiki --load ~/.zen/tmp/${MOATS}/${SECTOR}/TW/index.html --output ~/.zen/tmp/${MOATS} --render '.' 'TMP.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${title}" ISHERE=$(cat ~/.zen/tmp/${MOATS}/TMP.json | jq -r ".[].title") - if [[ ${ISHERE} != ${title} ]]; then + if [[ "${ISHERE}" != "${title}" ]]; then ## NEW TIDDLER echo "Importing Title: $title"