From 91ad5b7fa190460e69c8b9dabc49579b75ea9d0e Mon Sep 17 00:00:00 2001 From: Jaap van Ekris <82339657+JaapvanEkris@users.noreply.github.com> Date: Fri, 2 Feb 2024 10:18:42 +0100 Subject: [PATCH] Added error message on Bookworm Added an error message on the Bookworm install, as the Window manager is totally different. --- install/install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install/install.sh b/install/install.sh index 10f53db..ed226c7 100755 --- a/install/install.sh +++ b/install/install.sh @@ -73,9 +73,16 @@ if [[ $MODEL != Raspberry* ]]; then fi VERSION=$(grep -oP '(?<=^VERSION=).+' /etc/os-release | tr -d '"') -if [[ $VERSION != "10 (buster)" ]] && [[ $VERSION != "11 (bullseye)" ]] && [[ $VERSION != "12 (bookworm)" ]]; then +if [[ $VERSION == "12 (bookworm)" ]]; then print - print "Warning: So far this install script has only been tested with Raspberry Pi OS 10 (buster), 11 (bullseye) and OS 12 (bookworm)." + print "Error: So far this install script is not capable of installing on Raspberry Pi OS 12 (bookworm)." + print "Please use Raspberry Pi 11 (bullseye), which can be installed via the Raspberry Manager via the 'Raspberry Pi OS (other)' option, under the Legacy versions" + exit 1 +fi + +if [[ $VERSION != "10 (buster)" ]] && [[ $VERSION != "11 (bullseye)" ]]; then + print + print "Warning: So far this install script has only been tested with Raspberry Pi OS 10 (buster), 11 (bullseye)" if ! ask "You are running Raspberry Pi OS $VERSION, are you sure that you want to continue?" N; then exit 1 fi