update width for alpine
Some checks failed
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
CanbiZ 2024-12-20 23:18:29 +01:00 committed by GitHub
parent 1c4c3b71e3
commit 67a0c06b80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 <<EOF