From 37dddb73fd17308fa3fbb127f6e49c1bb06f89e7 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 2 Mar 2016 15:25:57 +0100 Subject: [PATCH] Fix is_suse() check for openSUSE distros We need to do a substring match on the vendor here. As most releases return "openSUSE project" for the vendor. Change-Id: Ia05db8d93b5e3f42cb6a9c8d77616ca9f7c32039 --- functions-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions-common b/functions-common index a26cc50db6..1452e2366b 100644 --- a/functions-common +++ b/functions-common @@ -433,7 +433,7 @@ function is_suse { GetOSVersion fi - [ "$os_VENDOR" = "openSUSE" ] || [ "$os_VENDOR" = "SUSE LINUX" ] + [[ "$os_VENDOR" =~ (openSUSE) || "$os_VENDOR" == "SUSE LINUX" ]] }