From add84d9a60483011347edac7203ecd42b40eda82 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 20 May 2025 17:09:31 -0600 Subject: [PATCH] template: Allow use of \ as line separator --- usr/local/share/bastille/template.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/template.sh b/usr/local/share/bastille/template.sh index 2475ad2a..d6428765 100644 --- a/usr/local/share/bastille/template.sh +++ b/usr/local/share/bastille/template.sh @@ -351,7 +351,7 @@ for _jail in ${JAILS}; do if [ -s "${bastille_template}/Bastillefile" ]; then # Ignore blank lines and comments. -- cwells - SCRIPT=$(grep -v '^[[:blank:]]*$' "${bastille_template}/Bastillefile" | grep -v '^[[:blank:]]*#') + SCRIPT=$(awk '{ if (substr($0, length, 1) == "\\") { printf "%s", substr($0, 1, length-1); } else { print $0; } }' "${rocinante_template}/Bastillefile" | grep -v '^[[:blank:]]*$' | grep -v '^[[:blank:]]*#') # Use a newline as the separator. -- cwells IFS=' ' @@ -481,4 +481,4 @@ for _jail in ${JAILS}; do bastille_running_jobs "${bastille_process_limit}" done -wait \ No newline at end of file +wait