aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcopyright7
1 files changed, 7 insertions, 0 deletions
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 )