aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/defaults.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser/defaults.lua')
-rw-r--r--bruiser/defaults.lua9
1 files changed, 9 insertions, 0 deletions
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