From ba82767cadf532a6e552f8c721f7384aa6dcdf03 Mon Sep 17 00:00:00 2001 From: Bram Date: Mon, 6 Jan 2025 12:09:10 +0100 Subject: [PATCH] config: Correctly match valueless parameters. Fixes #693 --- usr/local/share/bastille/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/config.sh b/usr/local/share/bastille/config.sh index c22b6d52..9b39f6bc 100644 --- a/usr/local/share/bastille/config.sh +++ b/usr/local/share/bastille/config.sh @@ -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