From 437b028167c1da250f3959b43c2f09935b4dba80 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 23 Apr 2018 16:10:30 +0430 Subject: updated the readme, added a wiki entry, fixed the default.lua script which i broke in the last commit --- bruiser/defaults.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bruiser/defaults.lua') diff --git a/bruiser/defaults.lua b/bruiser/defaults.lua index d3344f0..9f9f33b 100644 --- a/bruiser/defaults.lua +++ b/bruiser/defaults.lua @@ -6,6 +6,8 @@ local luarocks_handle = io.popen("luarocks path --bin") for line in luarocks_handle:lines() do local path = string.match(line, "LUA_PATH%s*=%s*('.+')") local cpath = string.match(line, "LUA_CPATH%s*=%s*('.+')") + local path_b = false + local cpath_b = false if path ~= nil then package.path = package.path..path end @@ -13,3 +15,10 @@ for line in luarocks_handle:lines() do package.cpath = package.cpath..cpath end end + +if path_b then + io.write("failed to get path from luarocks.\n") +end +if cpath_b then + io.write("failed to get cpath from luarocks.\n") +end -- cgit v1.2.3