Compare commits
2 Commits
8f3763950a
...
6254d988e6
| Author | SHA256 | Date | |
|---|---|---|---|
|
6254d988e6
|
|||
|
3fb9ebe556
|
@@ -199,6 +199,7 @@ yaml_secret() {
|
||||
s/^([[:space:]]*[A-Za-z_][A-Za-z0-9_]*_value)=[[:space:]]*$/\1='\'''\''/; t print
|
||||
/^[[:space:]]*[A-Za-z_][A-Za-z0-9_]*_value=[[:space:]]*('"'"'|\"|\$'"'"')/b print
|
||||
s/^([[:space:]]*[A-Za-z_][A-Za-z0-9_]*_value)=([^[[:space:]]'"'"'$][^[:space:]]*)[[:space:]]*$/\1='"'"'\2'"'"'/; t print
|
||||
s/^([[:space:]]*[A-Za-z_][A-Za-z0-9_]*_value)=[[:space:]]*(.+)[[:space:]]*$/\1='"'"'\2'"'"'/; t print
|
||||
:print
|
||||
p
|
||||
' -- "${__SECRETS}" >| "${__SECRETS}.value_only"
|
||||
@@ -214,6 +215,8 @@ yaml_secret() {
|
||||
|
||||
for __name in "${__names[@]}"; do
|
||||
|
||||
echo "${__name}"
|
||||
|
||||
### Value of the generated variable:
|
||||
__val="${!__name}"
|
||||
echo "${__val}"
|
||||
|
||||
Reference in New Issue
Block a user