Commit 36aef58c authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: fix VENDOR_ID for fedora like

parent 7efaeed8
......@@ -406,10 +406,10 @@ if distro os-release ; then
*)
if [ -n "$ID_LIKE" ] ; then
# ID_LIKE can be 'rhel centos fedora', use first word
VENDOR_ID="$(echo "$ID_LIKE" | xargs -n1 | head -n1)"
VENDOR_ID="$(echo "$ID_LIKE" | xargs -n1 echo | head -n1)"
# use latest word for versions like Fedora has
if is_numeric "$DISTRIB_RELEASE" && [ "$DISTRIB_RELEASE" -ge 20 ] ; then
VENDOR_ID="$(echo "$ID_LIKE" | xargs -n1 | tail -n1)"
VENDOR_ID="$(echo "$ID_LIKE" | xargs -n1 echo | tail -n1)"
fi
fi
;;
......
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