We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 392a81e commit 8c9bcf1Copy full SHA for 8c9bcf1
1 file changed
packages/lde/src/commands/upgrade.lua
@@ -115,6 +115,11 @@ local function upgrade(args)
115
return
116
end
117
118
+ -- Remove any leftover .old binary from a previous upgrade (Windows rename fails if dest exists)
119
+ if fs.exists(tempOldLocation) then
120
+ fs.delete(tempOldLocation)
121
+ end
122
+
123
-- Move current executable to tmp (allows replacement even if running)
124
local moveOldSuccess, moveOldErr = fs.move(binLocation, tempOldLocation)
125
if not moveOldSuccess then
0 commit comments