From 8cea7bef8afecd8200275c38b040031cd86240b8 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 21 Jan 2025 22:18:42 +0530 Subject: [PATCH] fix(lib): fix directory checking condition for tool dir creation --- toolchainlib/src/init.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchainlib/src/init.luau b/toolchainlib/src/init.luau index feed007..5732333 100644 --- a/toolchainlib/src/init.luau +++ b/toolchainlib/src/init.luau @@ -174,7 +174,7 @@ function installTool(tool: ToolId, installPath: pathfs.Path): number -- If the tool installation directory was not present, we create it local toolDir = Option.from(installPath:parent()):unwrap() - if not pathfs.isFile(toolDir) then + if not pathfs.isDir(toolDir) then pathfs.writeDir(toolDir) end