From 788f1fa34e8d65c35ba0211a28c6ca6e9f682bd1 Mon Sep 17 00:00:00 2001 From: Luke Gorrie Date: Mon, 11 Mar 2019 17:36:49 -0700 Subject: fixup! core.sysdetect: Fallback to /proc to detect Linux --- src/luarocks/core/sysdetect.lua | 10 +++++----- 1 file 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) local procfile = io.open("/proc/sys/kernel/ostype") if procfile then - local version = procfile:read(6) - procfile:close() - if version == "Linux\n" then - return "linux" - end + local version = procfile:read(6) + procfile:close() + if version == "Linux\n" then + return "linux" + end end end -- cgit v1.2.3-55-g6feb