Get rid of lsb-release dependency

This commit is contained in:
2026-06-18 22:14:21 +03:00
parent b9a618a514
commit c338e30790
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -6,9 +6,9 @@ OS_RELEASE=`uname -r`
OS_ARCH=`uname -m`
# Distro detection.
LSBRELEASE=$(which lsb_release)
if [ $? -eq 0 ]; then
DISTRO=`lsb_release -i -s`
if [[ -f /etc/os-release ]]; then
. /etc/os-release
DISTRO=${ID}
else
# BSDs OS and macOS can be detected via uname.
DISTRO=${OS}