Skip to content

Commit

Permalink
Fix missed path separator for lua script discovery (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
CompeyDev authored Aug 4, 2024
1 parent d706e83 commit 0a1e5ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/sandbox.luau
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local function discoverAndReadScript(filePath: string): string
end

if fs.isFile(filePath .. "/init.lua") then
scriptContents = fs.readFile(filePath .. "init.lua")
scriptContents = fs.readFile(filePath .. "/init.lua")
end
end

Expand Down
2 changes: 1 addition & 1 deletion pages/getting-started/5-security.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ local function discoverAndReadScript(filePath: string): string
end

if fs.isFile(filePath .. "/init.lua") then
scriptContents = fs.readFile(filePath .. "init.lua")
scriptContents = fs.readFile(filePath .. "/init.lua")
end
end

Expand Down

0 comments on commit 0a1e5ae

Please sign in to comment.