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