From 3a231d7cee5fd20a9d44cf29d4d7596c95c9afa5 Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Thu, 16 Feb 2023 01:41:33 -0700 Subject: [PATCH] Don't escape forward slash in grep expression --- scripts/sync-ebooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync-ebooks b/scripts/sync-ebooks index 98f3b895..48b619a3 100755 --- a/scripts/sync-ebooks +++ b/scripts/sync-ebooks @@ -244,7 +244,7 @@ printf "%s\n" "${repoUrls}" | while IFS= read -r repoUrl; do # get the last segment of the dc:identifier from the metadata properName="$(git -C "${repoName}" show HEAD:src/epub/content.opf | - grep -oE "url:https://standardebooks.org/ebooks/[^<]+<\/dc:identifier>" | + grep -oE "url:https://standardebooks.org/ebooks/[^<]+" | sed -E "s/<[^>]+?>//g" | sed -E "s|url:https://standardebooks.org/ebooks/||g" | sed -E "s|/|_|g").git"