mirror of
https://github.com/pesde-pkg/tooling.git
synced 2025-01-09 15:59:09 +00:00
fix(lib)!: check if existing tool_storage is dir, not file
This commit is contained in:
parent
db91ef8af5
commit
e0a9ca9aa4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue