Skip to content

Commit

Permalink
Make sure ren() accounts for leading "./"
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Dec 10, 2017
1 parent d5b0a42 commit 7cd10fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l3build.lua
Expand Up @@ -743,6 +743,8 @@ end
function ren(dir, source, dest)
local dir = dir .. "/"
if os_type == "windows" then
local source = gsub(source, "^%.+/", "")
local dest = gsub(dest, "^%.+/", "")
return execute("ren " .. unix_to_win(dir) .. source .. " " .. dest)
else
return execute("mv " .. dir .. source .. " " .. dir .. dest)
Expand Down

0 comments on commit 7cd10fb

Please sign in to comment.