diff options
Diffstat (limited to 'src')
| -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 | ||
