mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Fix ignore profile/path process.
This commit is contained in:
parent
ad754b26c6
commit
4522ca91db
3
configure
vendored
3
configure
vendored
@ -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 {} \;
|
||||||
|
Loading…
Reference in New Issue
Block a user