Fixed a bug in the install script

Fixed a bug reported by pirower. Many thanks for reporting!
This commit is contained in:
Jaap van Ekris 2024-01-15 22:05:17 +01:00 committed by GitHub
parent b747b61c46
commit 265a459a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ 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 != "10 (buster)" ]] && [[ $VERSION != "11 (bullseye)" ]] && [[ $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)."
if ! ask "You are running Raspberry Pi OS $VERSION, are you sure that you want to continue?" N; then