aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fs/unix/tools.lua6
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)
244end 244end
245 245
246function chmod(pathname, mode) 246function 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
248end 252end
249 253
250--- Apply a patch. 254--- Apply a patch.