Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
select-java: try to match $ID_LIKE also
there are some distros whose $ID in /etc/os-release does not match with any of the known distro id in this script, but they do have `$ID_LIKE` which contains one or more ids which match with the known distro id, as they are considered the derivatives of the matched distros. for instance RHEL's ID_LIKE is fedora, and OEL (Oracle Enterprise Linux)'s ID_LIKE is fedora, Rocky Linux's ID_LIKE is "rhel centos fedora". so, in order to find java runtime for these distros, we need to take ID_LIKE into consideration. in this change, both $ID and $ID_LIKE are considered, the first matched id wins. Fixes scylladb#212 Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
- Loading branch information