Don't escape forward slash in grep expression

This commit is contained in:
Anthony J. Bentley 2023-02-16 01:41:33 -07:00 committed by Alex Cabal
parent cc4d43f4c5
commit 3a231d7cee

View file

@ -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 # get the last segment of the dc:identifier from the metadata
properName="$(git -C "${repoName}" show HEAD:src/epub/content.opf | properName="$(git -C "${repoName}" show HEAD:src/epub/content.opf |
grep -oE "<dc:identifier id=\"uid\">url:https://standardebooks.org/ebooks/[^<]+<\/dc:identifier>" | grep -oE "<dc:identifier id=\"uid\">url:https://standardebooks.org/ebooks/[^<]+</dc:identifier>" |
sed -E "s/<[^>]+?>//g" | sed -E "s/<[^>]+?>//g" |
sed -E "s|url:https://standardebooks.org/ebooks/||g" | sed -E "s|url:https://standardebooks.org/ebooks/||g" |
sed -E "s|/|_|g").git" sed -E "s|/|_|g").git"