aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.bat9
1 files changed, 5 insertions, 4 deletions
diff --git a/install.bat b/install.bat
index 280d361f..758c1efc 100644
--- a/install.bat
+++ b/install.bat
@@ -640,11 +640,11 @@ for _, c in ipairs{"luarocks", "luarocks-admin"} do
640 f:write(S[[ 640 f:write(S[[
641@ECHO OFF 641@ECHO OFF
642SETLOCAL 642SETLOCAL
643SET LUA_PATH=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH% 643SET "LUA_PATH=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH%"
644IF NOT "%LUA_PATH_5_2%"=="" ( 644IF NOT "%LUA_PATH_5_2%"=="" (
645 SET LUA_PATH_5_2=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_2% 645 "SET LUA_PATH_5_2=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_2%"
646) 646)
647SET PATH=$BINDIR\;%PATH% 647SET "PATH=$BINDIR;%PATH%"
648"$LUA_INTERPRETER" "$BINDIR\]]..c..[[.lua" %* 648"$LUA_INTERPRETER" "$BINDIR\]]..c..[[.lua" %*
649ENDLOCAL 649ENDLOCAL
650]]) 650]])
@@ -738,7 +738,8 @@ rocks_trees = {
738if FORCE_CONFIG then 738if FORCE_CONFIG then
739 f:write(" home..[[/luarocks]],\n") 739 f:write(" home..[[/luarocks]],\n")
740end 740end
741f:write(S" [[$ROCKS_TREE]]\n") 741f:write(S" { name = [[system]], root = [[$ROCKS_TREE]] },\n")
742f:write(S" { name = [[user]], root = home..[[/luarocks]] },\n")
742f:write("}\n") 743f:write("}\n")
743if vars.SCRIPTS_DIR then 744if vars.SCRIPTS_DIR then
744 f:write(S"scripts_dir=[[$SCRIPTS_DIR]]\n") 745 f:write(S"scripts_dir=[[$SCRIPTS_DIR]]\n")