From a110c200e86d2325af07167531fac0f61d9681a0 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Fri, 26 Dec 2025 18:41:26 +0100 Subject: Switch to GUI to manage the library Allow to regroup the CLI and the view into one unique tool. --- bin/migrate/1-read-status | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 bin/migrate/1-read-status (limited to 'bin/migrate/1-read-status') 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 -- cgit v1.2.3