diff --git a/dists/partial.sh b/dists/partial.sh index 0a239cbe8..ec7b7c703 100644 --- a/dists/partial.sh +++ b/dists/partial.sh @@ -3,6 +3,9 @@ DESTDIR=/ for profile in "$@" do + if [ ! -f "${BUILD}/apparmor.d/${profile}" ]; then + continue + fi echo "Installing profile $profile" cp $BUILD/apparmor.d/$profile $DESTDIR/etc/apparmor.d/ grep "rPx," "${BUILD}/apparmor.d/${profile}" | while read line