From 62359238b4ef27841343055e25522e057a2c0eb2 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 20 Dec 2013 17:42:59 -0200 Subject: Quote URLs. I wonder if it works properly with `start` on Windows. --- src/luarocks/fs/unix/tools.lua | 2 +- src/luarocks/fs/win32/tools.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) end function browser(url) - return os.execute(cfg.web_browser..' '..url) + return fs.execute(cfg.web_browser, url) 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) end function browser(url) - return os.execute(cfg.web_browser..' '..url) + return fs.execute(cfg.web_browser, url) end -- cgit v1.2.3-55-g6feb