diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-20 17:42:59 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-10 16:41:38 -0200 |
commit | 62359238b4ef27841343055e25522e057a2c0eb2 (patch) | |
tree | 12b6380cfe700cd4c6789684714186df102fdc36 /src | |
parent | 2c21fecead35daf22107cc8f47c7ec510aced200 (diff) | |
download | luarocks-62359238b4ef27841343055e25522e057a2c0eb2.tar.gz luarocks-62359238b4ef27841343055e25522e057a2c0eb2.tar.bz2 luarocks-62359238b4ef27841343055e25522e057a2c0eb2.zip |
Quote URLs. I wonder if it works properly with `start` on Windows.
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/unix/tools.lua | 2 | ||||
-rw-r--r-- | src/luarocks/fs/win32/tools.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 91ea86c5..7535d679 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua | |||
@@ -343,5 +343,5 @@ function get_permissions(filename) | |||
343 | end | 343 | end |
344 | 344 | ||
345 | function browser(url) | 345 | function browser(url) |
346 | return os.execute(cfg.web_browser..' '..url) | 346 | return fs.execute(cfg.web_browser, url) |
347 | end | 347 | end |
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index e18ae58e..abbcd844 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
@@ -364,5 +364,5 @@ function exists(file) | |||
364 | end | 364 | end |
365 | 365 | ||
366 | function browser(url) | 366 | function browser(url) |
367 | return os.execute(cfg.web_browser..' '..url) | 367 | return fs.execute(cfg.web_browser, url) |
368 | end | 368 | end |