Skip to content

Commit b9bfd6e

Browse files
committed
Issue-9 small fix
1 parent 5de0819 commit b9bfd6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scm.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,13 @@ end
747747
---@param name string
748748
---@param localPath string
749749
function scm:checkRequirements(name, localPath)
750-
scm:log("Checking requirements of " .. name .. "...")
750+
scm:log("Checking requirements of " .. (localPath or name) .. "...")
751751
local file
752752
if localPath then
753753
file = fs.open(localPath, "r")
754+
if not file then
755+
file = fs.open('./'..localPath .. ".lua", "r")
756+
end
754757
elseif fs.exists("./" .. self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua") then
755758
file = fs.open("./" .. self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua", "r")
756759
else

0 commit comments

Comments
 (0)