From 03845c69a6f51824268f3454428c431a13858066 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2024 02:38:31 +0100 Subject: [PATCH] ~/.zen/tmp/${MOATS}/backup.json --- RUNTIME/VISA.new.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RUNTIME/VISA.new.sh b/RUNTIME/VISA.new.sh index 0e0edf6e..64a993d3 100755 --- a/RUNTIME/VISA.new.sh +++ b/RUNTIME/VISA.new.sh @@ -64,9 +64,10 @@ if [[ $SALT != "" && PEPPER != "" ]]; then --render '.' 'backup.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[!is[system]]' [[ -s ~/.zen/tmp/${MOATS}/backup.json ]] \ - && rm ~/.zen/tmp/${MOATS}/TW/index.html \ && echo ">> Tiddlers Backup : ~/.zen/tmp/${MOATS}/backup.json" \ || echo "ERROR EXTRACTING TIDDLERS" + + rm ~/.zen/tmp/${MOATS}/TW/index.html fi ############################################# @@ -77,7 +78,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then if [[ -s ~/.zen/tmp/${MOATS}/backup.json ]]; then tiddlywiki --load ~/.zen/tmp/${MOATS}/TW/index.html \ - --import ~/.zen/tmp/backup.json "application/json" \ + --import ~/.zen/tmp/${MOATS}/backup.json "application/json" \ --output ~/.zen/tmp/${MOATS} --render "$:/core/save/all" "tw.html" "text/plain" [[ -s ~/.zen/tmp/${MOATS}/tw.html ]] \