From dc820868a049c0c02c15a19711d949f47288ca1b Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 28 Jan 2022 13:01:06 +0000 Subject: [PATCH] pick: ignore non profile files. --- pick | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pick b/pick index 6cda61bd..a9aa73c0 100755 --- a/pick +++ b/pick @@ -35,7 +35,7 @@ _reload_apparmor() { pick() { for profile in "$@"; do - path="$(find apparmor.d -iname "$profile" -type f)" + path="$(find apparmor.d -iname "$profile" -type f -not -path './apparmor.d/tunables/*' -not -path './apparmor.d/abstractions/*')" if [[ -f "$path" ]]; then install -Dm0644 "$path" "/etc/apparmor.d/$profile" [[ "$COMPLAIN" == 1 ]] && _set_complain "/etc/apparmor.d/$profile" @@ -57,7 +57,6 @@ cmd_help() { main() { local opts err - small_arg="ch" long_arg="complain,help" opts="$(getopt -o $small_arg -l $long_arg -n "$PROGRAM" -- "$@")"