Skip to content

Commit 67a0c06

Browse files
authored
update width for alpine
1 parent 1c4c3b7 commit 67a0c06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

misc/build.func

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,14 @@ header_info() {
164164
apt-get install -y figlet &> /dev/null
165165
elif [ -f /etc/alpine-release ]; then
166166
# Alpine Linux
167-
apk add --no-cache figlet &> /dev/null
167+
apk add --no-cache figlet ncurses &> /dev/null
168+
export TERM=xterm
168169
else
169170
echo "Unsupported OS"
170171
return 1
171172
fi
172173

173-
term_width=$(tput cols)
174+
term_width=$(tput cols 2>/dev/null || echo 120) # Fallback to 120 columns
174175
ascii_art=$(figlet -f slant -w "$term_width" "$APP")
175176
clear
176177
cat <<EOF

0 commit comments

Comments
 (0)