From 8d7a0a5ce1e053beedc075b3171bf145efc4de82 Mon Sep 17 00:00:00 2001 From: Steve McIntyre <93sam@debian.org> Date: Tue, 9 Jun 2020 11:40:14 +0100 Subject: Use sort and uniq - minimise the size of the list here We may end up with duplicates, let's not include hashes twice in the shim binary blacklist --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 07e97ce2..dbe9adc6 100755 --- a/debian/rules +++ b/debian/rules @@ -46,7 +46,7 @@ COMMON_OPTIONS += \ $(DBX_LIST): $(DBX_HASHES) rm -f $@ set -e; \ - for HASH in $$(grep -E [[:xdigit:]]{32} $<); do \ + for HASH in $$(grep -E [[:xdigit:]]{32} $< | sort | uniq); do \ echo efisiglist -o $@ -a -h $$HASH; \ efisiglist -o $@ -a -h $$HASH; \ done -- cgit v1.2.3