2
0
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:
John Johansen
2008-01-03 23:21:07 +00:00
parent e9fd1d8fc1
commit 482b8741b7

View File

@@ -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"