fix(starter.sh): conditionally clear terminal in interactive mode

Ensure the `clear` command runs only in interactive shells with a valid terminal, preventing unintended behavior in non-interactive environments.
This commit is contained in:
Egor Pavlovich Gorbunov 2026-01-30 10:29:55 +03:00
parent 53ff3cef06
commit 0f408fe5de

View file

@ -22,7 +22,9 @@ if [ ! -f "$art_path" ]; then
exit 1 exit 1
fi fi
if is_interactive && [ -n "${TERM:-}" ]; then
clear clear
fi
if is_interactive; then if is_interactive; then
# In interactive mode, show colorful banner # In interactive mode, show colorful banner