From 0a1e5ae87da8e9aa113ad7849dbab954fe18d690 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 4 Aug 2024 19:47:40 +0530 Subject: [PATCH] Fix missed path separator for lua script discovery (#13) --- modules/sandbox.luau | 2 +- pages/getting-started/5-security.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sandbox.luau b/modules/sandbox.luau index 8b1541f..a430fbb 100644 --- a/modules/sandbox.luau +++ b/modules/sandbox.luau @@ -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 diff --git a/pages/getting-started/5-security.mdx b/pages/getting-started/5-security.mdx index 52c99ee..818ebf4 100644 --- a/pages/getting-started/5-security.mdx +++ b/pages/getting-started/5-security.mdx @@ -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