Make check-abstractions.d compatible with more shells

This commit is contained in:
Christian Boltz 2020-01-27 23:44:59 +01:00
parent 07a15d651a
commit e10a1b5ad9
Failed to generate hash of commit

View file

@ -117,7 +117,7 @@ check-abstractions.d:
@echo "*** Checking if all abstractions (with a few exceptions) contain #include if exists <abstractions/*.d>"
$(Q)cd apparmor.d/abstractions && for file in * ; do \
test -d "$$file" && continue ; \
test "$$file" == 'ubuntu-browsers' && continue ; \
test "$$file" == 'ubuntu-helpers' && continue ; \
test "$$file" = 'ubuntu-browsers' && continue ; \
test "$$file" = 'ubuntu-helpers' && continue ; \
grep -q "^ #include if exists <abstractions/$${file}.d>$$" $$file || { echo "$$file does not contain '#include if exists <abstractions/$${file}.d>'"; exit 1; } ; \
done