fix colors in conf_dump

This commit is contained in:
fatalerrors
2026-06-02 10:13:22 +02:00
parent 3e0bedd9c8
commit 9fcdb24988

View File

@@ -216,6 +216,11 @@ conf_dump()
c_sec = ENVIRON["_CONF_DUMP_SEC"]
c_key = ENVIRON["_CONF_DUMP_KEY"]
c_rst = ENVIRON["_CONF_DUMP_RST"]
# Shell colour vars contain literal \e[…m strings; convert to
# the actual ESC byte so awk print emits real ANSI sequences.
gsub(/\\e/, "\033", c_sec)
gsub(/\\e/, "\033", c_key)
gsub(/\\e/, "\033", c_rst)
in_target = 0
current_sec = ""
hdr_printed = 0