From e396b070c5b33a60576f764188e29a68a6518b10 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 28 Nov 2024 16:31:20 +0000 Subject: [PATCH] fix(lib): bad `chmod` mode value In this previous commit, it was setting mode to base-10 755, which is equivalent to octal 1363, being an invalid mode. --- toolchainlib/src/init.luau | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toolchainlib/src/init.luau b/toolchainlib/src/init.luau index 5aa9590..540a20e 100644 --- a/toolchainlib/src/init.luau +++ b/toolchainlib/src/init.luau @@ -73,7 +73,6 @@ local function downloadAndDecompress(asset: { end) :: Option end --- NOTE: number must be an octal or a string mode local function chmod(path: pathfs.Path, mode: number | string) if process.os == "windows" then return @@ -217,7 +216,9 @@ function installTool(tool: ToolId, installPath: pathfs.Path) -- Now we can use `path` to figure out the real tool to execute -- ... ]] - chmod(installPath, 755) + + -- NOTE: This is equivalent to `0o755` or `rwxr-xr-x` + chmod(installPath, 0b10101010011) runTool(installPath) end