installer: tolerate missing tty in offline finalizer

This commit is contained in:
Ryan Hughes committed 2026-06-04 18:35:01 -04:00
1 parent e67128e4c9
commit 96a020f756
4 files changed
+54 -13

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ fi
# Get terminal size from /dev/tty (works in all scenarios: direct, sourced, or piped)
if [[ -e /dev/tty ]]; then
TERM_SIZE=$(stty size 2>/dev/null </dev/tty)
TERM_SIZE=$(stty size 2>/dev/null </dev/tty || true)
if [[ -n $TERM_SIZE ]]; then
export TERM_HEIGHT=$(echo "$TERM_SIZE" | cut -d' ' -f1)