diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-11-12 20:34:25 +0100 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-11-12 20:34:25 +0100 |
| commit | 64bf574dbb1fcd190ba22aa026a69d81d2d0bd5b (patch) | |
| tree | 1e308b18f86d2ff596f5da710c222c00808ea69c /src | |
| parent | bdcde8743014964b3fbe13154bedc9ac6bceae76 (diff) | |
| download | luarocks-64bf574dbb1fcd190ba22aa026a69d81d2d0bd5b.tar.gz luarocks-64bf574dbb1fcd190ba22aa026a69d81d2d0bd5b.tar.bz2 luarocks-64bf574dbb1fcd190ba22aa026a69d81d2d0bd5b.zip | |
added quoting to os command, failed with paths containing spaces
Diffstat (limited to 'src')
| -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 |
