Browse code

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

Ralf Haferkamp authored on 2016/03/02 23:25:57
Showing 1 changed files
... ...
@@ -433,7 +433,7 @@ function is_suse {
433 433
         GetOSVersion
434 434
     fi
435 435
 
436
-    [ "$os_VENDOR" = "openSUSE" ] || [ "$os_VENDOR" = "SUSE LINUX" ]
436
+    [[ "$os_VENDOR" =~ (openSUSE) || "$os_VENDOR" == "SUSE LINUX" ]]
437 437
 }
438 438
 
439 439