Fix ignore profile/path process.

This commit is contained in:
Alexandre Pujol 2021-12-05 19:42:42 +00:00
parent ad754b26c6
commit 4522ca91db
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

3
configure vendored
View File

@ -33,7 +33,8 @@ ignore() {
_msg "Ignore profiles/files in dists/ignore/$name" _msg "Ignore profiles/files in dists/ignore/$name"
while read -r profile; do while read -r profile; do
[[ "$profile" =~ ^\# ]] && continue [[ "$profile" =~ ^\# ]] && continue
if [[ -e "$profile" ]]; then [[ -z "$profile" ]] && continue
if [[ -e "${ROOT:?}/$profile" ]]; then
rm -r "${ROOT:?}/$profile" rm -r "${ROOT:?}/$profile"
else else
find "$ROOT/apparmor.d" -iname "$profile" -type f -exec rm {} \; find "$ROOT/apparmor.d" -iname "$profile" -type f -exec rm {} \;