mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
fix init script so that it doesn't result in a regex with a null alternation ie. |apparmor
This commit is contained in:
@@ -103,7 +103,8 @@ STATUS=0
|
|||||||
|
|
||||||
# Test if the apparmor "module" is present.
|
# Test if the apparmor "module" is present.
|
||||||
is_apparmor_present() {
|
is_apparmor_present() {
|
||||||
local modules=""
|
local modules=$1
|
||||||
|
shift
|
||||||
|
|
||||||
while [ $# -gt 0 ] ; do
|
while [ $# -gt 0 ] ; do
|
||||||
modules="$modules|$1"
|
modules="$modules|$1"
|
||||||
|
Reference in New Issue
Block a user