diff --git a/configure b/configure index 251d724a2..593678804 100755 --- a/configure +++ b/configure @@ -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 {} \;