From 444f3ada33ac4de6a3ced0ee8d4ae99050b8fc0e Mon Sep 17 00:00:00 2001 From: fabs Date: Sat, 27 May 2023 22:25:15 +0200 Subject: [PATCH] Fix issue with binary interpretation of id3 tag by grep --- music_tagmove_lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_tagmove_lib b/music_tagmove_lib index 5664905..a790947 100644 --- a/music_tagmove_lib +++ b/music_tagmove_lib @@ -108,10 +108,10 @@ function read_tag_id3 { fi local substr_idx=6 - local line=$(grep -E "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1) + local line=$(grep -aE "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1) if [[ -z $line ]]; then rfc822tag=${id3v2_map_alt[$tag]} - line=$(grep -E "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1) + line=$(grep -aE "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1) substr_idx=5 fi