This commit is contained in:
monsieuremre 2023-10-28 10:31:09 +00:00 committed by GitHub
parent a8d8127c73
commit 794c3cf19d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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