Skip to content

Changed 'check_raspbain_version' to be compatible with Ubuntu - #17

Open
Joel-Baptista wants to merge 1 commit into
sunfounder:mainfrom
Joel-Baptista:main
Open

Changed 'check_raspbain_version' to be compatible with Ubuntu#17
Joel-Baptista wants to merge 1 commit into
sunfounder:mainfrom
Joel-Baptista:main

Conversation

@Joel-Baptista

Copy link
Copy Markdown

When installing the dependencies of the repository, the function 'check_raspbain_version' assumes a Debian based implementation when querying '/etc/debian_version'. In Ubuntu, this file has a string name (e.g. trixie), which results in a runtime error.

I updated the function to be compatible with Ubuntu. It maintained the same behavior when in Debian. However, when using Ubuntu, it will output the corresponding parent Debian version.

…havior when running on Debian remains the same
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant