summaryrefslogtreecommitdiff
path: root/install.bat
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-10-30 10:04:23 -0300
committerGitHub <noreply@github.com>2018-10-30 10:04:23 -0300
commit760ad7c98a4a322b1f028ea9585cd17c5b74b2e2 (patch)
treecde11b0975132e82062417c2a0057b13c7b6df4d /install.bat
parent0c534c71465474b92710a2951bf15370fcc8c663 (diff)
downloadluarocks-760ad7c98a4a322b1f028ea9585cd17c5b74b2e2.tar.gz
luarocks-760ad7c98a4a322b1f028ea9585cd17c5b74b2e2.tar.bz2
luarocks-760ad7c98a4a322b1f028ea9585cd17c5b74b2e2.zip
core.sysdetect: add fork-free OS detection (#938)
Detect operating system and architecture without forking subprocesses, doing `file`-like detection reading data from well-known system executables.
Diffstat (limited to 'install.bat')
-rw-r--r--install.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.bat b/install.bat
index 444a6847..4120db49 100644
--- a/install.bat
+++ b/install.bat
@@ -1015,7 +1015,7 @@ local hardcoded_lua = S[[$LUADIR\luarocks\core\hardcoded.lua]]
1015 1015
1016os.remove(hardcoded_lua) 1016os.remove(hardcoded_lua)
1017 1017
1018vars.SYSTEM = USE_MINGW and "MINGW" or "WindowsNT" 1018vars.SYSTEM = USE_MINGW and "mingw" or "windows"
1019 1019
1020local f = io.open(hardcoded_lua, "w") 1020local f = io.open(hardcoded_lua, "w")
1021f:write(S[=[ 1021f:write(S[=[