Fix tagtool to do case-insensitive matching

This commit is contained in:
jzarl 2019-05-25 19:16:44 +02:00
parent 513b377d56
commit 4fff293bab

View File

@ -53,7 +53,7 @@ renameTag()
for f in $(findTaggedFiles "$oldTagId")
do
echo "..$f" >&2
if ! doVerbose sed -E -i "s;>\W*$oldTagId\W*</tag>;>$newTagId</tag>;" "$f"
if ! doVerbose sed -E -i "s;>\W*$oldTagId\W*</tag>;>$newTagId</tag>;i" "$f"
then
echo "ERROR!" >&2
return 1