From c9ed3e1e72d0a58f26692b2dab84b6b0cec382a1 Mon Sep 17 00:00:00 2001 From: Xpol Wan Date: Sun, 1 Nov 2015 15:04:36 +0800 Subject: Enable batch script delayed expansion and extensions. This is required for Windows SDK setenv.cmd. --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bat b/install.bat index 01461667..79b71645 100644 --- a/install.bat +++ b/install.bat @@ -820,7 +820,7 @@ for _, c in ipairs{"luarocks", "luarocks-admin"} do local f = io.open(vars.BINDIR.."\\"..c..".bat", "w") f:write(S[[ @ECHO OFF -SETLOCAL +SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS $COMPILER_ENV_CMD SET "LUA_PATH=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH%" IF NOT "%LUA_PATH_5_2%"=="" ( -- cgit v1.2.3-55-g6feb