V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m44s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-26 15:44:59 +00:00
parent dc9521bac8
commit bd099f5cec
2 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ yaml_parser() {
# --- Quote unquoted values -------------------------------------------
s/^(.*)=([^'\''"]+)/\1='\''\2'\''/ # wrap value in single quotes
' "${VAR_PRESEED}"
' "${VAR_PRESEED}"
# shellcheck disable=SC1090
. "${VAR_PRESEED}"

View File

@@ -191,9 +191,9 @@ yaml_secret() {
yq -o=shell "${secrets_if}" >| "${__SECRETS}" && ciss_secrets_wiper "${secrets_if}"
LC_ALL=C sed -n -E '
/^[[:space:]]*(#|$)/b
s/^[[:space:]]*export[[:space:]]+//
/^[[:space:]]*[A-Za-z_][A-Za-z0-9_]*_value=/p
/^[[:space:]]*(#|$)/b # Skip empty/comment lines.
s/^[[:space:]]*export[[:space:]]+// # Drop optional leading "export ".
/^[[:space:]]*[A-Za-z_][A-Za-z0-9_]*_value=/!b # Keep only *_value= assignments.
# --- Empty-value normalisation ---------------------------------------
s/^(.*)=\s*$/\1=""/ # turn key= into key=""