diff options
-rw-r--r-- | src/luarocks/fs/unix/tools.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 2bfa7c3e..a67dca49 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua | |||
@@ -244,7 +244,11 @@ function download(url, filename) | |||
244 | end | 244 | end |
245 | 245 | ||
246 | function chmod(pathname, mode) | 246 | function chmod(pathname, mode) |
247 | return fs.execute("chmod "..mode, pathname) | 247 | if mode then |
248 | return fs.execute("chmod "..mode, pathname) | ||
249 | else | ||
250 | return false | ||
251 | end | ||
248 | end | 252 | end |
249 | 253 | ||
250 | --- Apply a patch. | 254 | --- Apply a patch. |