From 67a0c06b806aff58688d1bf9dd6c9ff5564a771e Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 20 Dec 2024 23:18:29 +0100 Subject: [PATCH] update width for alpine --- misc/build.func | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index b43746ea..5eed7c40 100644 --- a/misc/build.func +++ b/misc/build.func @@ -164,13 +164,14 @@ header_info() { apt-get install -y figlet &> /dev/null elif [ -f /etc/alpine-release ]; then # Alpine Linux - apk add --no-cache figlet &> /dev/null + apk add --no-cache figlet ncurses &> /dev/null + export TERM=xterm else echo "Unsupported OS" return 1 fi - term_width=$(tput cols) + term_width=$(tput cols 2>/dev/null || echo 120) # Fallback to 120 columns ascii_art=$(figlet -f slant -w "$term_width" "$APP") clear cat <