diff options
| author | ruki <[email protected]> | 2021-02-02 22:46:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-02 22:46:07 +0800 |
| commit | 8abac71e35e98611501a53327e1aa926621cb825 (patch) | |
| tree | 2c14c7e3bbecd87ddaf6a536d7b9b5da5061a283 | |
| parent | cc10a0504570a3b5b90e3b490290e9a884337fc4 (diff) | |
improve linuxos.name
| -rw-r--r-- | xmake/core/base/linuxos.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/base/linuxos.lua b/xmake/core/base/linuxos.lua index 0caa6e1a5..792d127e5 100644 --- a/xmake/core/base/linuxos.lua +++ b/xmake/core/base/linuxos.lua @@ -87,14 +87,16 @@ function linuxos.name() os_release = os_release:trim():lower() if os_release:find("arch linux", 1, true) or os_release:find("archlinux", 1, true) then name = "archlinux" + elseif os_release:find("centos linux", 1, true) or os_release:find("centos", 1, true) then + name = "centos" elseif os_release:find("fedora", 1, true) then name = "fedora" + elseif os_release:find("linux mint", 1, true) or os_release:find("linuxmint", 1, true) then + name = "linuxmint" elseif os_release:find("ubuntu", 1, true) then name = "ubuntu" elseif os_release:find("debian", 1, true) then name = "debian" - elseif os_release:find("linux mint", 1, true) or os_release:find("linuxmint", 1, true) then - name = "linuxmint" end end end |
