From 629374a8950ebd575c4532685693f25c965ec8fd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 May 2018 18:11:31 +0200 Subject: Skip binary files in copyright script --- copyright | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/copyright b/copyright index b9b5aa0..7bcb308 100755 --- a/copyright +++ b/copyright @@ -54,6 +54,13 @@ while IFS= read -r -d '' f; do continue fi + # Exclude binary files. + # + if file -b --mime "$f" | grep -q "charset=binary"; then + info "skipping binary $f" + continue + fi + files+=("$f") done < <(git ls-tree -r HEAD -z --name-only ) -- cgit v1.1