even more fix
This commit is contained in:
parent
9f89cf35e6
commit
a8d8127c73
1 changed files with 34 additions and 28 deletions
|
|
@ -7,6 +7,9 @@ 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
|
||||||
|
continue
|
||||||
|
fi
|
||||||
dep=$(echo "$l1" | awk '{print $1}')
|
dep=$(echo "$l1" | 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")
|
||||||
|
|
@ -20,6 +23,9 @@ 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
|
||||||
|
continue
|
||||||
|
fi
|
||||||
dep=${line%%#*}
|
dep=${line%%#*}
|
||||||
dep=$(echo $dep | awk '{print $NF}')
|
dep=$(echo $dep | awk '{print $NF}')
|
||||||
dep=${dep::-1}
|
dep=${dep::-1}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue