From a5347889bdda7ee8637eb072b05246302c9a8e59 Mon Sep 17 00:00:00 2001 From: anten-ka Date: Mon, 6 Apr 2026 22:48:08 +0300 Subject: [PATCH] fix: templates_catalog.sh - redirect show_template_preview stdout to stderr Lines 168-172 in show_template_preview() were missing >&2, causing stdout leak into subshell capture chain. This corrupted template_dir variable and broke Stealth mode deployment. --- lib/templates_catalog.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/templates_catalog.sh b/lib/templates_catalog.sh index 6b0a887..f44e5fa 100644 --- a/lib/templates_catalog.sh +++ b/lib/templates_catalog.sh @@ -165,11 +165,11 @@ show_template_preview() { fi # Благодарность автору - echo "" - echo -e " ${MAGENTA}💜 Спасибо авторам ${source} за открытый код!${NC}" + echo "" >&2 + echo -e " ${MAGENTA}💜 Спасибо авторам ${source} за открытый код!${NC}" >&2 - echo -e " ${DIM}$(printf '─%.0s' {1..55})${NC}" - echo "" + echo -e " ${DIM}$(printf '─%.0s' {1..55})${NC}" >&2 + echo "" >&2 if ! confirm "Установить этот шаблон?"; then return 1