Skip to content

Refactor OS detection for Debian and Ubuntu to use regex matching#19

Open
BiRo96 wants to merge 1 commit intoNayamAmarshe:mainfrom
BiRo96:fix-for-ubuntu-based-systems
Open

Refactor OS detection for Debian and Ubuntu to use regex matching#19
BiRo96 wants to merge 1 commit intoNayamAmarshe:mainfrom
BiRo96:fix-for-ubuntu-based-systems

Conversation

@BiRo96
Copy link

@BiRo96 BiRo96 commented Sep 29, 2025

For my Linux Mint the following command gives the following result:

~$ source /etc/os-release
~$ echo $ID_LIKE
ubuntu debian

in this case the ubuntu or debian if statement is false since it's not "ubuntu" or "debian" but "ubuntu debian" all together...

so I modified the detection code to use regex, to find these to words in any kind of combination.
so it does in case of my Linux Mint

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