fix(lib): fix directory checking condition for tool dir creation

This commit is contained in:
Erica Marigold 2025-01-21 22:18:42 +05:30
parent 3757ee3583
commit 8cea7bef8a
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -174,7 +174,7 @@ function installTool(tool: ToolId, installPath: pathfs.Path): number
-- If the tool installation directory was not present, we create it -- If the tool installation directory was not present, we create it
local toolDir = Option.from(installPath:parent()):unwrap() local toolDir = Option.from(installPath:parent()):unwrap()
if not pathfs.isFile(toolDir) then if not pathfs.isDir(toolDir) then
pathfs.writeDir(toolDir) pathfs.writeDir(toolDir)
end end