diff options
Diffstat (limited to 'mk/xe-linux-distribution')
-rwxr-xr-x | mk/xe-linux-distribution | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/xe-linux-distribution b/mk/xe-linux-distribution index 5ba714a..76fa531 100755 --- a/mk/xe-linux-distribution +++ b/mk/xe-linux-distribution @@ -291,8 +291,8 @@ identify_kylin() return 1 fi - eval $(sed -n -e \ - 's/^NeoKylin Linux Advanced Server release V*\([0-9]*\)\\D*\([0-9]*\).*$/distro=neokylin;major=\1;minor=\2;/gp;' \ + eval $(sed -rn \ + 's/^NeoKylin Linux Advanced Server release V*([0-9]*)[^0-9]*([0-9]*).*$/distro=neokylin;major=\1;minor=\2;/gp;' \ "${kylin_release}") if [ -z "${major}" -o -z "${distro}" ] ; then |