mirror of
https://github.com/pesde-pkg/tooling.git
synced 2025-04-07 20:30:55 +01:00
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:
parent
ad78e5a2b7
commit
e396b070c5
1 changed files with 3 additions and 2 deletions
|
@ -73,7 +73,6 @@ local function downloadAndDecompress(asset: {
|
||||||
end) :: Option<pathfs.Path>
|
end) :: Option<pathfs.Path>
|
||||||
end
|
end
|
||||||
|
|
||||||
-- NOTE: number must be an octal or a string mode
|
|
||||||
local function chmod(path: pathfs.Path, mode: number | string)
|
local function chmod(path: pathfs.Path, mode: number | string)
|
||||||
if process.os == "windows" then
|
if process.os == "windows" then
|
||||||
return
|
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
|
-- 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)
|
runTool(installPath)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue