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.
This commit is contained in:
anten-ka
2026-04-06 22:48:08 +03:00
parent 3938a4ca3b
commit a5347889bd

View File

@@ -165,11 +165,11 @@ show_template_preview() {
fi fi
# Благодарность автору # Благодарность автору
echo "" echo "" >&2
echo -e " ${MAGENTA}💜 Спасибо авторам ${source} за открытый код!${NC}" echo -e " ${MAGENTA}💜 Спасибо авторам ${source} за открытый код!${NC}" >&2
echo -e " ${DIM}$(printf '─%.0s' {1..55})${NC}" echo -e " ${DIM}$(printf '─%.0s' {1..55})${NC}" >&2
echo "" echo "" >&2
if ! confirm "Установить этот шаблон?"; then if ! confirm "Установить этот шаблон?"; then
return 1 return 1