From d98c3e0cb9628627dfc7121635ab0a438b3292c9 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 12 Jan 2015 22:42:33 -0200 Subject: 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.) --- src/luarocks/fs/unix/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 = {} local vars = cfg.variables local function command_at(directory, cmd) - return "cd " .. fs.Q(directory) .. " && " .. cmd + return "cd " .. fs.Q(fs.absolute_name(directory)) .. " && " .. cmd end --- Obtain current directory. -- cgit v1.2.3-55-g6feb