Skip to content

Commit

Permalink
Update to allow installation on Debian 12 'Bookworm'
Browse files Browse the repository at this point in the history
  • Loading branch information
JaapvanEkris authored Jan 10, 2024
1 parent 3ccda4f commit b747b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ if [[ $MODEL != Raspberry* ]]; then
fi

VERSION=$(grep -oP '(?<=^VERSION=).+' /etc/os-release | tr -d '"')
if [[ $VERSION != "10 (buster)" ]] && [[ $VERSION != "11 (bullseye)" ]]; 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) and OS 11 (bullseye)."
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
exit 1
fi
Expand Down

1 comment on commit b747b61

@Gordon-Shumway2
Copy link

@Gordon-Shumway2 Gordon-Shumway2 commented on b747b61 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible bug:
Line 76 leads to an installation failure:

You should only run this script on a SD Card that contains Raspberry Pi OS (Lite)
and does not contain any important data.
-c: line 76: syntax error near unexpected token `&&'

I believe there is a spurious ';' at line 76, column 72. Once the ';' is removed the installer is able to continue past the point where it previously stopped.

Please sign in to comment.