Merge branch 'BastilleBSD:master' into patch-2

This commit is contained in:
tschettervictor
2025-02-15 22:33:15 -07:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -45,9 +45,15 @@ Template Automation Hooks
| SYSRC | sysrc command(s) | nginx_enable=YES |
+---------+-------------------+-----------------------------------------+
Note: SYSRC requires that NO quotes be used or that quotes (`"`) be escaped
Special Hook Cases
------------------
SYSRC requires that NO quotes be used or that quotes (`"`) be escaped
ie; (`\\"`)
ARG will always treat an ampersand "\&" literally, without the need to escape it.
Escaping it will cause errors.
Place these uppercase template hook commands into a `Bastillefile` in any order
and automate container setup as needed.

View File

@@ -54,7 +54,7 @@ get_arg_name() {
parse_arg_value() {
# Parses the value after = and then escapes back/forward slashes and single quotes in it. -- cwells
echo "${1}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g'
echo "${1}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/&/\\&/g' -e 's/"//g'
}
get_arg_value() {