Better aa-log completion.

This commit is contained in:
Alexandre Pujol 2021-04-29 20:58:03 +01:00
parent 49bddc0382
commit e8e2003e07
Failed to generate hash of commit

View file

@ -7,11 +7,11 @@ _aa-log () {
}
__aa_profiles() {
find -L /etc/apparmor.d -type f \
| sed -e 's#/etc/apparmor.d/##' \
-e '/abi/d' \
find -L /etc/apparmor.d -type f -printf '%P\n' \
| sed -e '/abi/d' \
-e '/abstractions/d' \
-e '/local/d' \
-e '/tunables/d' \
| sort
}