Added error message on Bookworm
Added an error message on the Bookworm install, as the Window manager is totally different.
This commit is contained in:
parent
a434744ce1
commit
91ad5b7fa1
|
|
@ -73,9 +73,16 @@ if [[ $MODEL != Raspberry* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=$(grep -oP '(?<=^VERSION=).+' /etc/os-release | tr -d '"')
|
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
|
||||||
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
|
if ! ask "You are running Raspberry Pi OS $VERSION, are you sure that you want to continue?" N; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue