diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-14 20:32:27 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-14 20:32:27 -0300 |
commit | 4db416edf3f9cea762588fe88c5796cdb75b3048 (patch) | |
tree | 969df178c470b52cdcfc53953044f59f1523ee33 | |
parent | 548585bc989763b79a41fd25fc2dad12f99618a4 (diff) | |
download | luarocks-2.0.3-final.tar.gz luarocks-2.0.3-final.tar.bz2 luarocks-2.0.3-final.zip |
Extra error check.v2.0.3-final
-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. |