From c223018d28a74cdda12193593899935201743642 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 1 Aug 2014 10:48:10 +1000 Subject: [PATCH] Add CentOS to is_fedora check Match CentOS for centos7 nodes in "is_fedora" checks. In the future we may need a more fine-grained approach, but for now both can be considered the same. Change-Id: I7fd7933a94c3a7fa08f4f29a02fd36d09da21519 --- functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 80afae49..dd164cef 100644 --- a/functions.sh +++ b/functions.sh @@ -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 {