Skip to content

Commit

Permalink
Merge pull request #23 from LostNulide/patch-1
Browse files Browse the repository at this point in the history
Added new raspbian release(bookworm) to raspbian_releases
  • Loading branch information
makermelissa committed Apr 15, 2024
2 parents 9f66980 + 85686ee commit 9bd7f6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion adafruit_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,14 @@ def get_raspbian_version(self):
"""Return a string containing the raspbian version"""
if self.get_os() != "Raspbian":
return None
raspbian_releases = ("bullseye", "buster", "stretch", "jessie", "wheezy")
raspbian_releases = (
"bookworm",
"bullseye",
"buster",
"stretch",
"jessie",
"wheezy",
)
if os.path.exists("/etc/os-release"):
with open("/etc/os-release", encoding="utf-8") as f:
release_file = f.read()
Expand Down

0 comments on commit 9bd7f6a

Please sign in to comment.