From 4e2cf45f5b587fd87008613f06a5a2f356efdfe9 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 22 Dec 2025 18:38:48 -0700 Subject: [PATCH] template: remove duplicate line --- usr/local/share/bastille/template.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/template.sh b/usr/local/share/bastille/template.sh index b6b31c22..bf2d8f44 100644 --- a/usr/local/share/bastille/template.sh +++ b/usr/local/share/bastille/template.sh @@ -70,7 +70,13 @@ parse_arg_value() { local arg="${1}" # Parses the value after = and then escapes back/forward slashes and single quotes in it. -- cwells - eval echo "${arg}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/&/\\&/g' -e 's/"//g' + eval echo "${arg}" | \ + sed -E 's/[^=]+=?//' | \ + sed -e 's/\\/\\\\/g' \ + -e 's/\//\\\//g' \ + -e 's/'\''/'\''\\'\'\''/g' \ + -e 's/&/\\&/g' \ + -e 's/"//g' } get_arg_value() { @@ -116,7 +122,6 @@ render() { if [ -d "${file_path}" ]; then # Recursively render every file in this directory. -- cwells echo "Rendering Directory: ${file_path}" - find "${file_path}" \( -type d -name .git -prune \) -o -type f find "${file_path}" \( -type d -name .git -prune \) -o -type f -print0 | eval "xargs -0 sed -i '' ${ARG_REPLACEMENTS}" elif [ -f "${file_path}" ]; then echo "Rendering File: ${file_path}"