diff --git a/src/UpdateCheck.lua b/src/UpdateCheck.lua index 7d3f8bec7c..969357151d 100644 --- a/src/UpdateCheck.lua +++ b/src/UpdateCheck.lua @@ -305,7 +305,7 @@ local ops = { } local opsRuntime = { } for _, data in pairs(updateFiles) do -- Ensure that the destination path of this file exists - local dirStr = "" + local dirStr = data.fullPath:sub(1,1) == "/" and "/" or "" for dir in data.fullPath:gmatch("([^/]+/)") do dirStr = dirStr .. dir MakeDir(dirStr)