Merge "Add CentOS to is_fedora check"

This commit is contained in:
Jenkins
2014-08-02 02:09:32 +00:00
committed by Gerrit Code Review

View File

@@ -18,7 +18,9 @@
# Distro check functions
function is_fedora {
lsb_release -i 2>/dev/null | grep -iq "fedora"
# note we consider CentOS 7 as fedora for now
lsb_release -i 2>/dev/null | grep -iq "fedora" || \
lsb_release -i 2>/dev/null | grep -iq "CentOS"
}
function is_ubuntu {