Closed ranocha closed 5 years ago
Having an alternative if /etc/os-release
doesn't exist might be good. I don't know whether it exists in all linux distributions (and OS X?). Do you have an idea for the alternative?
It should probably exist on most recent Linux distros (http://0pointer.de/blog/projects/os-release). But OS X is a good point. Do we want to officially support that? Maybe if the file doesn't exist, we could output something like 'Unknown Distribution' followed by the uname kernel info?
That's a good idea. Could you add that part, please?
Thanks! You can (squash-) merge if the tests pass.
The order of the lines in
/etc/os-release
does not seem to be the same across all linux distributions. On Debian,toolkitICL
failed because of that, since the linegetOS
wants to read os not long enough:I've fixed that. Now, all tests pass again on Debian.