diff --git a/lib/lum.lua b/lib/lum.lua index 1a66b4c..f716a91 100644 --- a/lib/lum.lua +++ b/lib/lum.lua @@ -38,13 +38,15 @@ function install(package) io.write("Installing " .. package .. "\n") local dir = bin_path + local package_dir = "packages/" --if package starts with lib then remove lib if string.sub(package, 1, 3) == "lib" then package = string.sub(package, 4) dir = lib_path + package_dir = "lib/" end - download_lua("packages/" .. package .. ".lua", dir .. package .. ".lua") + download_lua(package_dir .. package .. ".lua", dir .. package .. ".lua") if dir == lib_path then os.loadAPI(lib_path .. package .. ".lua") end