From e0a9ca9aa490f9bb9946b0ccaa4847b9a86f06b2 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 16 Dec 2024 07:28:26 +0000 Subject: [PATCH] fix(lib)!: check if existing tool_storage is dir, not file --- 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 00b36fc..03f73fc 100644 --- a/toolchainlib/src/init.luau +++ b/toolchainlib/src/init.luau @@ -91,7 +91,7 @@ local LINK_INSTALL_DIR = (dirs.homeDir() or error("Couldn't get home dir :(")):j local TOOL_STORAGE_DIR = LINK_INSTALL_DIR:join(".tool_storage") local OLD_TOOL_STORAGE_DIR = LINK_INSTALL_DIR:join("tool_storage") -if pathfs.isFile(OLD_TOOL_STORAGE_DIR) then +if pathfs.isDir(OLD_TOOL_STORAGE_DIR) then pathfs.move(OLD_TOOL_STORAGE_DIR, TOOL_STORAGE_DIR) end