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.
This commit is contained in:
Erica Marigold 2024-11-28 16:31:20 +00:00
parent ad78e5a2b7
commit e396b070c5

View file

@ -73,7 +73,6 @@ local function downloadAndDecompress(asset: {
end) :: Option<pathfs.Path>
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