diff options
| author | Luke Gorrie <luke@snabb.co> | 2019-03-11 17:36:49 -0700 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-03-12 12:40:03 -0700 |
| commit | 788f1fa34e8d65c35ba0211a28c6ca6e9f682bd1 (patch) | |
| tree | 44f47559fb59c5288bca6c55c5edb99da301c5e7 | |
| parent | 9d87dafb47f48315547d5e384dd995836cf67995 (diff) | |
| download | luarocks-788f1fa34e8d65c35ba0211a28c6ca6e9f682bd1.tar.gz luarocks-788f1fa34e8d65c35ba0211a28c6ca6e9f682bd1.tar.bz2 luarocks-788f1fa34e8d65c35ba0211a28c6ca6e9f682bd1.zip | |
fixup! core.sysdetect: Fallback to /proc to detect Linux
| -rw-r--r-- | src/luarocks/core/sysdetect.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/luarocks/core/sysdetect.lua b/src/luarocks/core/sysdetect.lua index 213d16bf..81e62076 100644 --- a/src/luarocks/core/sysdetect.lua +++ b/src/luarocks/core/sysdetect.lua | |||
| @@ -183,11 +183,11 @@ local function detect_elf_system(fd, hdr, sections) | |||
| 183 | 183 | ||
| 184 | local procfile = io.open("/proc/sys/kernel/ostype") | 184 | local procfile = io.open("/proc/sys/kernel/ostype") |
| 185 | if procfile then | 185 | if procfile then |
| 186 | local version = procfile:read(6) | 186 | local version = procfile:read(6) |
| 187 | procfile:close() | 187 | procfile:close() |
| 188 | if version == "Linux\n" then | 188 | if version == "Linux\n" then |
| 189 | return "linux" | 189 | return "linux" |
| 190 | end | 190 | end |
| 191 | end | 191 | end |
| 192 | end | 192 | end |
| 193 | 193 | ||
