From 0f408fe5dea30c6fa2159efbeb6e088969f89968 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Fri, 30 Jan 2026 10:29:55 +0300 Subject: [PATCH] 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. --- scripts/Unix/starter.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Unix/starter.sh b/scripts/Unix/starter.sh index caf1cab1..4e2520e1 100644 --- a/scripts/Unix/starter.sh +++ b/scripts/Unix/starter.sh @@ -22,7 +22,9 @@ if [ ! -f "$art_path" ]; then exit 1 fi -clear +if is_interactive && [ -n "${TERM:-}" ]; then + clear +fi if is_interactive; then # In interactive mode, show colorful banner