From 30c2877d2f3162978a63f8c0f704eb1c3545d6d2 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 18 Oct 2013 15:56:37 -0300 Subject: Fix infinite loop! --- src/luarocks/repos.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/repos.lua b/src/luarocks/repos.lua index 23398cbb..08810015 100644 --- a/src/luarocks/repos.lua +++ b/src/luarocks/repos.lua @@ -216,7 +216,7 @@ function deploy_files(name, version, wrap_bin_scripts) if err == "untracked" then local backup = target repeat - backup = target.."~" + backup = backup.."~" until not fs.exists(backup) -- slight race condition here, but shouldn't be a problem. util.printerr("Warning: "..target.." is not tracked by this installation of LuaRocks. Moving it to "..backup) fs.move(target, backup) -- cgit v1.2.3-55-g6feb