From b4377543ac41b1bf58b60ae101942f24618bde0a Mon Sep 17 00:00:00 2001 From: Casey Vega Date: Thu, 16 Jul 2020 00:51:01 -0700 Subject: Update tools.lua - use --help flag versus -h If you're using busybox, luarocks fails despite unzip being installed. Using the --help flag works in GNU, Busybox, and OSX --- src/luarocks/fs/unix/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 2e46c19b..959ee86e 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua @@ -141,7 +141,7 @@ end -- @return boolean: true on success, nil and error message on failure. function tools.unzip(zipfile) assert(zipfile) - local ok, err = fs.is_tool_available(vars.UNZIP, "unzip", "-h") + local ok, err = fs.is_tool_available(vars.UNZIP, "unzip", "--help") if not ok then return nil, err end -- cgit v1.2.3-55-g6feb