commit | d14d0c1aea8fe0eb61b7788a3b546475e183b079 | [log] [tgz] |
---|---|---|
author | Mauro Carvalho Chehab <[email protected]> | Tue Apr 14 18:56:08 2020 +0200 |
committer | Jonathan Corbet <[email protected]> | Mon Apr 20 15:19:12 2020 -0600 |
tree | 9036cae193b48173cbf4b59fd3f10a26657dab02 | |
parent | d98dbbe0d331b1a6dc1ca0b948c99d58cdba580c [diff] |
scripts: sphinx-pre-install: improve distro detection check The Arch-linux detection is hit by catting /etc/issue, whose contents is (nowadays): Arch Linux \r (\l) It sounds a little ackward to print such string, so, instead, let's use the /etc/os-release file, with exists on lots of distributions and should provide a more reliable result. We'll keep the old tests before it, in order to avoid possible regressions with the other distros, although the new way should probably work on all the currently supported distributions. Signed-off-by: Mauro Carvalho Chehab <[email protected]> Link: https://lore.kernel.org/r/472924557afdf2b5492ae2a48c5ecfae216d54e2.1586883286.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet <[email protected]>