mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
Fix ignore profile/path process.
This commit is contained in:
parent
ad754b26c6
commit
4522ca91db
1 changed files with 2 additions and 1 deletions
3
configure
vendored
3
configure
vendored
|
@ -33,7 +33,8 @@ ignore() {
|
|||
_msg "Ignore profiles/files in dists/ignore/$name"
|
||||
while read -r profile; do
|
||||
[[ "$profile" =~ ^\# ]] && continue
|
||||
if [[ -e "$profile" ]]; then
|
||||
[[ -z "$profile" ]] && continue
|
||||
if [[ -e "${ROOT:?}/$profile" ]]; then
|
||||
rm -r "${ROOT:?}/$profile"
|
||||
else
|
||||
find "$ROOT/apparmor.d" -iname "$profile" -type f -exec rm {} \;
|
||||
|
|
Loading…
Reference in a new issue