mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	update width for alpine
This commit is contained in:
		@@ -164,13 +164,14 @@ header_info() {
 | 
				
			|||||||
    apt-get install -y figlet &> /dev/null
 | 
					    apt-get install -y figlet &> /dev/null
 | 
				
			||||||
  elif [ -f /etc/alpine-release ]; then
 | 
					  elif [ -f /etc/alpine-release ]; then
 | 
				
			||||||
    # Alpine Linux
 | 
					    # Alpine Linux
 | 
				
			||||||
    apk add --no-cache figlet &> /dev/null
 | 
					    apk add --no-cache figlet ncurses &> /dev/null
 | 
				
			||||||
 | 
					    export TERM=xterm
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    echo "Unsupported OS"
 | 
					    echo "Unsupported OS"
 | 
				
			||||||
    return 1
 | 
					    return 1
 | 
				
			||||||
  fi
 | 
					  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")
 | 
					  ascii_art=$(figlet -f slant -w "$term_width" "$APP")
 | 
				
			||||||
  clear
 | 
					  clear
 | 
				
			||||||
  cat <<EOF
 | 
					  cat <<EOF
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user