diff --git a/misc/build.func b/misc/build.func index 2213aa57..ed08660a 100644 --- a/misc/build.func +++ b/misc/build.func @@ -161,6 +161,10 @@ arch_check() { header_info() { if [ -f /etc/debian_version ]; then # Debian/Ubuntu + if ! grep -q "^deb http://ftp.debian.org/debian bookworm main contrib" /etc/apt/sources.list; then + echo "deb http://ftp.debian.org/debian bookworm main contrib" >> /etc/apt/sources.list + apt-get update -y &> /dev/null + fi apt-get install -y figlet &> /dev/null elif [ -f /etc/alpine-release ]; then # Alpine Linux