aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fs/unix.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/unix.lua b/src/luarocks/fs/unix.lua
index daa60c15..52634246 100644
--- a/src/luarocks/fs/unix.lua
+++ b/src/luarocks/fs/unix.lua
@@ -70,7 +70,7 @@ function unix.wrap_script(file, dest, name, version)
70 70
71 local base = dir.base_name(file) 71 local base = dir.base_name(file)
72 local wrapname = fs.is_dir(dest) and dest.."/"..base or dest 72 local wrapname = fs.is_dir(dest) and dest.."/"..base or dest
73 local lpath, lcpath = cfg.package_paths() 73 local lpath, lcpath = cfg.package_paths(cfg.root_dir)
74 local wrapper = io.open(wrapname, "w") 74 local wrapper = io.open(wrapname, "w")
75 if not wrapper then 75 if not wrapper then
76 return nil, "Could not open "..wrapname.." for writing." 76 return nil, "Could not open "..wrapname.." for writing."