aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2023-01-21 14:27:26 +0100
committerJoris2023-01-21 14:27:26 +0100
commit959c28f52e2ac1038f27110c88344fb321ed8e0e (patch)
tree2a2ad2abce090f388137613eb582f4a9c2465e85
parent25abf9bc7fd3e6f5b5aabf745cef7d217cde4262 (diff)
Generate data.js on tmp dir when viewing library
-rwxr-xr-xbin/view2
1 files changed, 1 insertions, 1 deletions
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"