Commit 9f3f5376 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: use lastest ID_LIKE word

parent 520b363c
...@@ -391,7 +391,8 @@ if distro os-release ; then ...@@ -391,7 +391,8 @@ if distro os-release ; then
ubuntu|reld|rhel|astra|manjaro) ubuntu|reld|rhel|astra|manjaro)
;; ;;
*) *)
[ -n "$ID_LIKE" ] && VENDOR_ID="$(echo "$ID_LIKE" | cut -d" " -f1)" # ID_LIKE can be 'rhel centos fedora', use latest word
[ -n "$ID_LIKE" ] && VENDOR_ID="$(echo "$ID_LIKE" | xargs -n1 | tail -n1)"
;; ;;
esac esac
DISTRIB_FULL_RELEASE="$DISTRIB_RELEASE" DISTRIB_FULL_RELEASE="$DISTRIB_RELEASE"
......
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