This commit is contained in:
parent
e21c6e4e59
commit
b5c21d825c
|
@ -21,14 +21,14 @@ MOATS=$3
|
||||||
echo ${RSS}
|
echo ${RSS}
|
||||||
titles=$(cat "${RSS}" | jq -r '.[] | .title')
|
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
|
## CHECK FOR TIDDLER WITH SAME TITTLE IN SECTOR TW
|
||||||
rm -f ~/.zen/tmp/${MOATS}/TMP.json
|
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}"
|
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")
|
ISHERE=$(cat ~/.zen/tmp/${MOATS}/TMP.json | jq -r ".[].title")
|
||||||
|
|
||||||
if [[ ${ISHERE} != ${title} ]]; then
|
if [[ "${ISHERE}" != "${title}" ]]; then
|
||||||
|
|
||||||
## NEW TIDDLER
|
## NEW TIDDLER
|
||||||
echo "Importing Title: $title"
|
echo "Importing Title: $title"
|
||||||
|
|
Loading…
Reference in New Issue