mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 09:10:15 +01:00
config: Correctly match valueless parameters. Fixes #693
This commit is contained in:
@@ -136,7 +136,7 @@ for _jail in ${JAILS}; do
|
||||
awk -F= -v line="${LINE}" -v property="${PROPERTY}" '
|
||||
BEGIN {
|
||||
# build RE as string as we can not expand vars in RE literals
|
||||
prop_re = "^[[:space:]]*" property "[[:space:]]*$";
|
||||
prop_re = "^[[:space:]]*" property "[[:space:]]*;?$";
|
||||
}
|
||||
$1 ~ prop_re && !found {
|
||||
# we already have an entry in the config for this property so
|
||||
|
||||
Reference in New Issue
Block a user