Skip to content

Commit 5de0819

Browse files
committed
read only
1 parent ae12d5a commit 5de0819

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scm.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -750,11 +750,9 @@ function scm:checkRequirements(name, localPath)
750750
scm:log("Checking requirements of " .. name .. "...")
751751
local file
752752
if localPath then
753-
file = fs.open(localPath)
754-
elseif fs.exists("./" ..
755-
self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua") then
756-
file = fs.open("./" ..
757-
self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua", "r")
753+
file = fs.open(localPath, "r")
754+
elseif fs.exists("./" .. self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua") then
755+
file = fs.open("./" .. self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua", "r")
758756
else
759757
file = fs.open("./" .. self.config["libraryDirectory"] .. name .. ".lua", "r")
760758
end

0 commit comments

Comments
 (0)