aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-01-12 22:42:33 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-01-12 22:42:33 -0200
commitd98c3e0cb9628627dfc7121635ab0a438b3292c9 (patch)
treedfc6ee890756e9da193a51cbc0e32af9f2170de3
parent8d588f9c0f6c884c972c65635f3b503403d293f8 (diff)
downloadluarocks-d98c3e0cb9628627dfc7121635ab0a438b3292c9.tar.gz
luarocks-d98c3e0cb9628627dfc7121635ab0a438b3292c9.tar.bz2
luarocks-d98c3e0cb9628627dfc7121635ab0a438b3292c9.zip
Make it more robust.
(I _think_ win32 needs something similar, but there's the complication of drive letters so I won't touch it now without proper testing.)
-rw-r--r--src/luarocks/fs/unix/tools.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua
index 8db1f0e5..43174749 100644
--- a/src/luarocks/fs/unix/tools.lua
+++ b/src/luarocks/fs/unix/tools.lua
@@ -12,7 +12,7 @@ local dir_stack = {}
12local vars = cfg.variables 12local vars = cfg.variables
13 13
14local function command_at(directory, cmd) 14local function command_at(directory, cmd)
15 return "cd " .. fs.Q(directory) .. " && " .. cmd 15 return "cd " .. fs.Q(fs.absolute_name(directory)) .. " && " .. cmd
16end 16end
17 17
18--- Obtain current directory. 18--- Obtain current directory.