diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-11-12 11:35:40 -0800 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-11-12 11:35:40 -0800 |
commit | f06853ce8818a1b337b68fec710c8180e37e0b68 (patch) | |
tree | 8ecb30ab8fb95cadca51627d23c1571f6b30c741 | |
parent | d3a64208df1fa5ae870df437d95c950a159093b9 (diff) | |
parent | 64bf574dbb1fcd190ba22aa026a69d81d2d0bd5b (diff) | |
download | luarocks-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.lua | 2 |
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 | |||
42 | function current_dir() | 42 | function 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 |