From 9fcdb249889bce730e25ef8665c18ae6b2df5b3f Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Tue, 2 Jun 2026 10:13:22 +0200 Subject: [PATCH] fix colors in conf_dump --- profile.d/conf.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profile.d/conf.sh b/profile.d/conf.sh index 1cf7691..f6c628f 100755 --- a/profile.d/conf.sh +++ b/profile.d/conf.sh @@ -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