awk/variables

This commit is contained in:
Marc Beninca 2025-07-07 02:31:01 +02:00
parent fd281ee8d0
commit 40bd26f9ce
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 8 additions and 2 deletions

View file

@ -246,8 +246,10 @@ rwx_parse_functions() {
"${_rwx_code_awk}"
}
rwx_parse_variables() {
printf "%s" "${_rwx_code}" |
sed --silent "s|${RWX_REGEX_TARGET_VARIABLE}|\\1|p"
rwx_code |
awk \
--assign action="variables" \
"${_rwx_code_awk}"
}
# ╭──────┬─────╮