From 61c65010e40e1220e3c07595004649c7579c378c Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Mon, 9 Oct 2023 07:22:18 -0400 Subject: [PATCH] iteration --- lib/lum.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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