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:
parent
53ff3cef06
commit
0f408fe5de
1 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,9 @@ if [ ! -f "$art_path" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if is_interactive && [ -n "${TERM:-}" ]; then
|
||||
clear
|
||||
fi
|
||||
|
||||
if is_interactive; then
|
||||
# In interactive mode, show colorful banner
|
||||
|
|
|
|||
Loading…
Reference in a new issue