aboutsummaryrefslogtreecommitdiff
path: root/bin/migrate/1-read-status
diff options
context:
space:
mode:
authorJoris Guyonvarch2025-12-26 18:41:26 +0100
committerJoris Guyonvarch2025-12-27 20:41:44 +0100
commita110c200e86d2325af07167531fac0f61d9681a0 (patch)
tree90e843f915a2e153ba735849afd83710d90560bf /bin/migrate/1-read-status
parenta26d92ad5055fa057647158eb79511e7b1841162 (diff)
Switch to GUI to manage the library
Allow to regroup the CLI and the view into one unique tool.
Diffstat (limited to 'bin/migrate/1-read-status')
-rwxr-xr-xbin/migrate/1-read-status19
1 files changed, 0 insertions, 19 deletions
diff --git a/bin/migrate/1-read-status b/bin/migrate/1-read-status
deleted file mode 100755
index 5f4b61d..0000000
--- a/bin/migrate/1-read-status
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-if [ "$#" == 1 ]; then
- BOOK_DIR="$1"
-else
- echo "usage: $0 path-to-book-directory"
- exit 1
-fi
-
-for FILE in $(find "$BOOK_DIR" -name 'metadata.json'); do
- METADATA=$(cat "$FILE")
- READ=$(echo "$METADATA" | jq .read)
- if [ "$READ" == "true" ]; then
- echo "$METADATA" | jq '.read = "Read"' > "$FILE"
- else
- echo "$METADATA" | jq '.read = "Unread"' > "$FILE"
- fi
-done