mirror of
https://github.com/pesde-pkg/tooling.git
synced 2025-03-04 02:51:47 +00:00
fix(lib): fix directory checking condition for tool dir creation
This commit is contained in:
parent
3757ee3583
commit
8cea7bef8a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue