From 9e59b405d1edfe06f8c333c975f7baca5980bf36 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Fri, 17 Dec 2021 16:32:54 +0100 Subject: [PATCH] Support new bullseye See https://git.vvvvvvaria.org/varia/bibliotecha-report/issues/1 --- bibliotecha.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bibliotecha.sh b/bibliotecha.sh index 088b478..0e762c8 100644 --- a/bibliotecha.sh +++ b/bibliotecha.sh @@ -100,22 +100,28 @@ function ensure_buster_based_distribution { echo "Checking distribution ..." local installing_on_buster_based=1 + local installing_on_bullseye_based=1 if [ ! -f /etc/apt/sources.list ]; then installing_on_buster_based= + installing_on_bullseye_based= else if ! grep -q 'buster' /etc/apt/sources.list; then installing_on_buster_based= fi + if ! grep -q 'bullseye' /etc/apt/sources.list; then + installing_on_bullseye_based= + fi if ! grep -q 'debian' /etc/apt/sources.list; then if ! grep -q 'raspbian' /etc/apt/sources.list; then installing_on_buster_based= + installing_on_bullseye_based= fi fi fi - if [ ! $installing_on_buster_based ]; then - echo "You should only run this on a Debian Buster based system" + if [ ! $installing_on_buster_based ] && [ ! $installing_on_bullseye_based ]; then + echo "This installation script only supports a Debian Buster/Bullseye based system, sorry!" exit 1 fi }