summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <93sam@debian.org>2020-06-09 11:40:14 +0100
committerSteve McIntyre <93sam@debian.org>2020-07-24 01:28:51 +0100
commit8d7a0a5ce1e053beedc075b3171bf145efc4de82 (patch)
tree1f7eca1da58c395f5eac9933e947ffe349eb538b
parentc161c40d1ef319d0d54e6ab19de6fc35c42b9967 (diff)
downloadefi-boot-shim-8d7a0a5ce1e053beedc075b3171bf145efc4de82.tar.gz
efi-boot-shim-8d7a0a5ce1e053beedc075b3171bf145efc4de82.zip
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
-rwxr-xr-xdebian/rules2
1 files changed, 1 insertions, 1 deletions
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