aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-12-20 17:42:59 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-01-10 16:41:38 -0200
commit62359238b4ef27841343055e25522e057a2c0eb2 (patch)
tree12b6380cfe700cd4c6789684714186df102fdc36 /src
parent2c21fecead35daf22107cc8f47c7ec510aced200 (diff)
downloadluarocks-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.lua2
-rw-r--r--src/luarocks/fs/win32/tools.lua2
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)
343end 343end
344 344
345function browser(url) 345function browser(url)
346 return os.execute(cfg.web_browser..' '..url) 346 return fs.execute(cfg.web_browser, url)
347end 347end
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)
364end 364end
365 365
366function browser(url) 366function browser(url)
367 return os.execute(cfg.web_browser..' '..url) 367 return fs.execute(cfg.web_browser, url)
368end 368end