diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 22:42:33 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 22:42:33 -0200 |
commit | d98c3e0cb9628627dfc7121635ab0a438b3292c9 (patch) | |
tree | dfc6ee890756e9da193a51cbc0e32af9f2170de3 | |
parent | 8d588f9c0f6c884c972c65635f3b503403d293f8 (diff) | |
download | luarocks-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.lua | 2 |
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 = {} | |||
12 | local vars = cfg.variables | 12 | local vars = cfg.variables |
13 | 13 | ||
14 | local function command_at(directory, cmd) | 14 | local function command_at(directory, cmd) |
15 | return "cd " .. fs.Q(directory) .. " && " .. cmd | 15 | return "cd " .. fs.Q(fs.absolute_name(directory)) .. " && " .. cmd |
16 | end | 16 | end |
17 | 17 | ||
18 | --- Obtain current directory. | 18 | --- Obtain current directory. |