Favor os-release over debian_version, as it gives more details on the host OS
On a Debian unstable system, the file `/etc/debian_version` contains only `11.0`, so the script `build.sh` gives me this kind of log: OS: 11.0 Not super informative. However the file `/usr/lib/os-release` provides more details, and by using it we can get the following log: OS: Debian GNU/Linux 11 (bullseye) For a Kali system: OS: Kali GNU/Linux 2021.2merge-requests/16/head
parent
d8c4e39495
commit
88e5ec963b
Loading…
Reference in New Issue