Get rid of lsb-release dependency

This commit is contained in:
hdkv committed 2026-06-18 22:14:21 +03:00
1 parent b9a618a514
commit c338e30790
2 files changed
+6 -6

No files matched your search

+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}