diff options
author | Casey Vega <cvega@users.noreply.github.com> | 2020-07-16 00:51:01 -0700 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-07-21 11:10:58 -0300 |
commit | b4377543ac41b1bf58b60ae101942f24618bde0a (patch) | |
tree | a4fda2486d4b9eb5d7512c85d9891df7381a82c0 | |
parent | 6a11f673d02145ffe03aea173817ea9ab566f784 (diff) | |
download | luarocks-b4377543ac41b1bf58b60ae101942f24618bde0a.tar.gz luarocks-b4377543ac41b1bf58b60ae101942f24618bde0a.tar.bz2 luarocks-b4377543ac41b1bf58b60ae101942f24618bde0a.zip |
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
-rw-r--r-- | src/luarocks/fs/unix/tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
141 | -- @return boolean: true on success, nil and error message on failure. | 141 | -- @return boolean: true on success, nil and error message on failure. |
142 | function tools.unzip(zipfile) | 142 | function tools.unzip(zipfile) |
143 | assert(zipfile) | 143 | assert(zipfile) |
144 | local ok, err = fs.is_tool_available(vars.UNZIP, "unzip", "-h") | 144 | local ok, err = fs.is_tool_available(vars.UNZIP, "unzip", "--help") |
145 | if not ok then | 145 | if not ok then |
146 | return nil, err | 146 | return nil, err |
147 | end | 147 | end |