diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/command_line.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 8fa9073c..d08ffdfe 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua | |||
@@ -21,18 +21,6 @@ local function die(message) | |||
21 | os.exit(1) | 21 | os.exit(1) |
22 | end | 22 | end |
23 | 23 | ||
24 | local function is_writable(tree) | ||
25 | if type(tree) == "string" then | ||
26 | return fs.make_dir(tree) and fs.is_writable(tree) | ||
27 | else | ||
28 | writable = true | ||
29 | for k, v in pairs(tree) do | ||
30 | writable = writable and fs.make_dir(v) and fs.is_writable(v) | ||
31 | end | ||
32 | return writable | ||
33 | end | ||
34 | end | ||
35 | |||
36 | --- Main command-line processor. | 24 | --- Main command-line processor. |
37 | -- Parses input arguments and calls the appropriate driver function | 25 | -- Parses input arguments and calls the appropriate driver function |
38 | -- to execute the action requested on the command-line, forwarding | 26 | -- to execute the action requested on the command-line, forwarding |