aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/rep.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/rep.lua b/src/luarocks/rep.lua
index 90b79fcd..6c359bec 100644
--- a/src/luarocks/rep.lua
+++ b/src/luarocks/rep.lua
@@ -213,6 +213,7 @@ function deploy_files(name, version)
213 end 213 end
214 fs.make_dir(dir.dir_name(target)) 214 fs.make_dir(dir.dir_name(target))
215 ok, err = move_fn(source, target) 215 ok, err = move_fn(source, target)
216 fs.remove_dir_tree_if_empty(dir.dir_name(source))
216 if not ok then return nil, err end 217 if not ok then return nil, err end
217 return true 218 return true
218 end 219 end