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"
|
_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…
Add table
Add a link
Reference in a new issue