V8.00.000.2025.06.17
Some checks failed
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Has been cancelled

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-26 15:29:47 +00:00
parent def3971add
commit 9d0b956ece
2 changed files with 7 additions and 1 deletions

View File

@@ -192,6 +192,12 @@ yaml_secret() {
/^[[:space:]]*(#|$)/b
s/^[[:space:]]*export[[:space:]]+//
/^[[:space:]]*[A-Za-z_][A-Za-z0-9_]*_value=/p
# --- Empty-value normalisation ---------------------------------------
s/^(.*)=\s*$/\1=""/ # turn key= into key=""
# --- Quote unquoted values -------------------------------------------
s/^(.*)=([^'\''"]+)/\1='\''\2'\''/ # wrap value in single quotes
' -- "${__SECRETS}" >| "${__SECRETS}.value_only"
ciss_secrets_wiper "${__SECRETS}"