1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 11:08:31 +00:00

fix: improve robustness of UI output commands by adding || true

This commit is contained in:
Tw93
2025-12-28 21:51:38 +08:00
parent 87d25573a4
commit 6beca2f5fa
3 changed files with 4 additions and 4 deletions

View File

@@ -584,7 +584,7 @@ start_section_spinner() {
stop_section_spinner() {
stop_inline_spinner 2> /dev/null || true
if [[ -t 1 ]]; then
echo -ne "\r\033[K" >&2
echo -ne "\r\033[K" >&2 || true
fi
}