fix(lib)!: check if existing tool_storage is dir, not file

This commit is contained in:
Erica Marigold 2024-12-16 07:28:26 +00:00
parent db91ef8af5
commit e0a9ca9aa4
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -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