From 959c28f52e2ac1038f27110c88344fb321ed8e0e Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 21 Jan 2023 14:27:26 +0100 Subject: Generate data.js on tmp dir when viewing library --- bin/view | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/view') diff --git a/bin/view b/bin/view index 159bc6a..21541c1 100755 --- a/bin/view +++ b/bin/view @@ -10,7 +10,7 @@ else exit 1 fi -bin/get-data "$BOOK_DIR" > "public/data.js" TMP_DIR=$(mktemp --directory) cp public/* "$TMP_DIR" +bin/get-data "$BOOK_DIR" > "$TMP_DIR/data.js" eval "$BROWSER $TMP_DIR/index.html" -- cgit v1.2.3