mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-22 10:10:46 +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}" '
|
awk -F= -v line="${LINE}" -v property="${PROPERTY}" '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
# build RE as string as we can not expand vars in RE literals
|
# 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 {
|
$1 ~ prop_re && !found {
|
||||||
# we already have an entry in the config for this property so
|
# we already have an entry in the config for this property so
|
||||||
|
|||||||
Reference in New Issue
Block a user