diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-11 17:00:43 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-11 17:21:14 -0300 |
commit | 8ee4ef81cf015adca29ac51a7d649a5ee04b3edd (patch) | |
tree | c0c28f9aac86f16a4294665dfac702aa4612f1a9 /src/luarocks/fs/netbsd.lua | |
parent | eddf776d64941454377f996733f96873cb79bcae (diff) | |
download | luarocks-8ee4ef81cf015adca29ac51a7d649a5ee04b3edd.tar.gz luarocks-8ee4ef81cf015adca29ac51a7d649a5ee04b3edd.tar.bz2 luarocks-8ee4ef81cf015adca29ac51a7d649a5ee04b3edd.zip |
simplify check if tool is available
Diffstat (limited to 'src/luarocks/fs/netbsd.lua')
-rw-r--r-- | src/luarocks/fs/netbsd.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/luarocks/fs/netbsd.lua b/src/luarocks/fs/netbsd.lua deleted file mode 100644 index b9610339..00000000 --- a/src/luarocks/fs/netbsd.lua +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | --- NetBSD implementation of filesystem and platform abstractions. | ||
2 | local netbsd = {} | ||
3 | |||
4 | local fs = require("luarocks.fs") | ||
5 | |||
6 | function netbsd.init() | ||
7 | local uz=io.open("/usr/bin/unzip", "r") | ||
8 | if uz ~= nil then | ||
9 | io.close(uz) | ||
10 | fs.set_tool_available("unzip", true) | ||
11 | end | ||
12 | end | ||
13 | |||
14 | return netbsd | ||