V8.00.000.2025.06.17
Some checks failed
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Has been cancelled
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:
@@ -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}"
|
||||
Reference in New Issue
Block a user