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
This commit is contained in:
parent
925e2d9ded
commit
37dddb73fd
@ -433,7 +433,7 @@ function is_suse {
|
||||
GetOSVersion
|
||||
fi
|
||||
|
||||
[ "$os_VENDOR" = "openSUSE" ] || [ "$os_VENDOR" = "SUSE LINUX" ]
|
||||
[[ "$os_VENDOR" =~ (openSUSE) || "$os_VENDOR" == "SUSE LINUX" ]]
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user