Commit 17805c89 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: fix os-release detection

parent b4a3d97e
...@@ -132,8 +132,8 @@ elif distro slackware-version ; then ...@@ -132,8 +132,8 @@ elif distro slackware-version ; then
DISTRIB_ID="Slackware" DISTRIB_ID="Slackware"
DISTRIB_RELEASE="$(grep -Eo [0-9]+\.[0-9]+ $DISTROFILE)" DISTRIB_RELEASE="$(grep -Eo [0-9]+\.[0-9]+ $DISTROFILE)"
elif distro os-release ; then elif distro os-release && which apk 2>/dev/null >/dev/null ; then
. /etc/os-release . $ROOTDIR/etc/os-release
DISTRIB_ID="$ID" DISTRIB_ID="$ID"
DISTRIB_RELEASE="$VERSION_ID" DISTRIB_RELEASE="$VERSION_ID"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment