aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2013-11-12 11:35:40 -0800
committerThijs Schreijer <thijs@thijsschreijer.nl>2013-11-12 11:35:40 -0800
commitf06853ce8818a1b337b68fec710c8180e37e0b68 (patch)
tree8ecb30ab8fb95cadca51627d23c1571f6b30c741
parentd3a64208df1fa5ae870df437d95c950a159093b9 (diff)
parent64bf574dbb1fcd190ba22aa026a69d81d2d0bd5b (diff)
downloadluarocks-f06853ce8818a1b337b68fec710c8180e37e0b68.tar.gz
luarocks-f06853ce8818a1b337b68fec710c8180e37e0b68.tar.bz2
luarocks-f06853ce8818a1b337b68fec710c8180e37e0b68.zip
Merge pull request #182 from Tieske/fix_quotes
added quoting to os command, failed with paths containing spaces
-rw-r--r--src/luarocks/fs/win32/tools.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua
index e08de97a..979aaff4 100644
--- a/src/luarocks/fs/win32/tools.lua
+++ b/src/luarocks/fs/win32/tools.lua
@@ -42,7 +42,7 @@ end
42function current_dir() 42function current_dir()
43 local current = cfg.cache_pwd 43 local current = cfg.cache_pwd
44 if not current then 44 if not current then
45 local pipe = io.popen(vars.PWD) 45 local pipe = io.popen(fs.Q(vars.PWD))
46 current = pipe:read("*l") 46 current = pipe:read("*l")
47 pipe:close() 47 pipe:close()
48 cfg.cache_pwd = current 48 cfg.cache_pwd = current