mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 16:20:08 +00:00
fix: improve robustness of UI output commands by adding || true
This commit is contained in:
@@ -584,7 +584,7 @@ start_section_spinner() {
|
|||||||
stop_section_spinner() {
|
stop_section_spinner() {
|
||||||
stop_inline_spinner 2> /dev/null || true
|
stop_inline_spinner 2> /dev/null || true
|
||||||
if [[ -t 1 ]]; then
|
if [[ -t 1 ]]; then
|
||||||
echo -ne "\r\033[K" >&2
|
echo -ne "\r\033[K" >&2 || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ start_inline_spinner() {
|
|||||||
INLINE_SPINNER_PID=$!
|
INLINE_SPINNER_PID=$!
|
||||||
disown 2> /dev/null || true
|
disown 2> /dev/null || true
|
||||||
else
|
else
|
||||||
echo -n " ${BLUE}|${NC} $message" >&2
|
echo -n " ${BLUE}|${NC} $message" >&2 || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,7 +293,7 @@ stop_inline_spinner() {
|
|||||||
wait "$INLINE_SPINNER_PID" 2> /dev/null || true
|
wait "$INLINE_SPINNER_PID" 2> /dev/null || true
|
||||||
INLINE_SPINNER_PID=""
|
INLINE_SPINNER_PID=""
|
||||||
# Clear the line - use \033[2K to clear entire line, not just to end
|
# Clear the line - use \033[2K to clear entire line, not just to end
|
||||||
[[ -t 1 ]] && printf "\r\033[2K" >&2
|
[[ -t 1 ]] && printf "\r\033[2K" >&2 || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
mole
2
mole
@@ -25,7 +25,7 @@ source "$SCRIPT_DIR/lib/core/common.sh"
|
|||||||
trap cleanup_temp_files EXIT INT TERM
|
trap cleanup_temp_files EXIT INT TERM
|
||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
VERSION="1.15.3"
|
VERSION="1.15.4"
|
||||||
MOLE_TAGLINE="Deep clean and optimize your Mac."
|
MOLE_TAGLINE="Deep clean and optimize your Mac."
|
||||||
|
|
||||||
# Check TouchID configuration
|
# Check TouchID configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user