From 8d556a468ad07e58f6e06397e558e0b353f8c8d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 18 Jul 2018 01:06:13 +0200 Subject: [PATCH] WoRg arounT GNU greps FAULTY binary file dTection! AAAAARRGHH!!!! --- indexmeta.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indexmeta.sh b/indexmeta.sh index 2e4e74f..0c5d7d9 100644 --- a/indexmeta.sh +++ b/indexmeta.sh @@ -54,8 +54,8 @@ meta_info(){ meta="${file%/*}/.index/meta" if [ -d "${meta%/meta}" ]; then - grep -m1 -F " $(meta_name "$file")" "$meta" \ - | grep -xE '[0-9]+ [0-9]+ [0-9]+ tags=[^ ]* comment=[^ ]* .+' \ + grep -aF " $(meta_name "$file")" "$meta" \ + | grep -m1 -xE '[0-9]+ [0-9]+ [0-9]+ tags=[^ ]* comment=[^ ]* .+' \ || meta_file "$file" else printf '0\t0\t0\ttags=\tcomment=\t\r' -- 2.39.2