From 51894fe0c3ac0777a0556f7179de239c644bb0b5 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Fri, 23 Oct 2020 12:41:25 +0300 Subject: [PATCH] Fix OpenSUSE version detection Previously, the version was grabbed as 15.2" from the string PRETTY_NAME="openSUSE Leap 15.2" - this patch makes sure that only 15.2 is grabbed --- os_list.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_list.txt b/os_list.txt index 74b0cf9b6..77557d82a 100644 --- a/os_list.txt +++ b/os_list.txt @@ -171,7 +171,7 @@ SuSE OpenExchange Linux $1 suse-linux 8.2 `cat /etc/SLOX-release 2>/dev/null` = SuSE SLES Linux $1 suse-linux sprintf("%.1f", $1) $etc_issue =~ /SuSE\s+SLES-(\S+)/i # SuSE Linux -SuSE Linux $1 suse-linux $1 `cat /etc/SuSE-release 2>/dev/null` =~ /([0-9\.]+)/ || `cat /etc/os-release 2>/dev/null` =~ /openSUSE\s+Leap\s+(\S+)/ || $etc_issue =~ /SuSE\s+Linux\s+(\S+)\s/i || `cat /etc/SUSE-brand 2>/dev/null` =~ /VERSION\s*=\s(\S+)/ +SuSE Linux $1 suse-linux $1 `cat /etc/SuSE-release 2>/dev/null` =~ /([0-9\.]+)/ || `cat /etc/os-release 2>/dev/null` =~ /openSUSE\s+Leap\s+([\d\.]+)/ || $etc_issue =~ /SuSE\s+Linux\s+(\S+)\s/i || `cat /etc/SUSE-brand 2>/dev/null` =~ /VERSION\s*=\s(\S+)/ # United Linux only ever had version 1.0 I think United Linux $1 united-linux $1 `cat /etc/UnitedLinux-release 2>/dev/null` =~ /([0-9\.]+)/