even more fix

This commit is contained in:
monsieuremre 2023-10-28 10:24:35 +00:00 committed by GitHub
parent 9f89cf35e6
commit a8d8127c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,9 @@ do
cp $BUILD/apparmor.d/$profile $DESTDIR/etc/apparmor.d/
grep "rPx," "${BUILD}/apparmor.d/${profile}" | while read line
do
if [[ -z "$dep" ]]; then
continue
fi
dep=$(echo "$l1" | awk '{print $1}')
dep=$(echo $dep | awk -F"/" '{print $NF}')
dep=$(eval "ls ${BUILD}/apparmor.d/${dep} 2>/dev/null")
@ -20,6 +23,9 @@ do
done
grep "rPx -> " "${BUILD}/apparmor.d/${profile}" | while read line
do
if [[ -z "$dep" ]]; then
continue
fi
dep=${line%%#*}
dep=$(echo $dep | awk '{print $NF}')
dep=${dep::-1}