From 9978e606f07479af8168da82b85fba68ac19177b Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 21 Oct 2023 02:14:07 +0200 Subject: [PATCH] while read because of spaces in titles --- tools/RSS2UPlanetTW.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/RSS2UPlanetTW.sh b/tools/RSS2UPlanetTW.sh index bc061bae..458137a7 100755 --- a/tools/RSS2UPlanetTW.sh +++ b/tools/RSS2UPlanetTW.sh @@ -21,9 +21,10 @@ INDEX=$4 [[ ! -s ${INDEX} ]] && echo "BAD TW INDEX" && exit 1 echo "SECTOR TW INSERTING" ${RSS} -titles=$(cat "${RSS}" | jq -r '.[] | .title') -for title in "$titles"; do +cat "${RSS}" | jq -r '.[] | .title' > ~/.zen/tmp/${MOATS}/titles.list + +while read title; do ## CHECK FOR TIDDLER WITH SAME TITTLE IN SECTOR TW rm -f ~/.zen/tmp/${MOATS}/TMP.json @@ -141,4 +142,4 @@ https://vdo.copylaradio.com fi -done +done < ~/.zen/tmp/${MOATS}/titles.list