diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-10-30 10:04:23 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 10:04:23 -0300 |
commit | 760ad7c98a4a322b1f028ea9585cd17c5b74b2e2 (patch) | |
tree | cde11b0975132e82062417c2a0057b13c7b6df4d /install.bat | |
parent | 0c534c71465474b92710a2951bf15370fcc8c663 (diff) | |
download | luarocks-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.bat | 2 |
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 | ||
1016 | os.remove(hardcoded_lua) | 1016 | os.remove(hardcoded_lua) |
1017 | 1017 | ||
1018 | vars.SYSTEM = USE_MINGW and "MINGW" or "WindowsNT" | 1018 | vars.SYSTEM = USE_MINGW and "mingw" or "windows" |
1019 | 1019 | ||
1020 | local f = io.open(hardcoded_lua, "w") | 1020 | local f = io.open(hardcoded_lua, "w") |
1021 | f:write(S[=[ | 1021 | f:write(S[=[ |