diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-05 14:55:06 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 11:42:46 -0300 |
commit | 43b7c42ae09526a7c5e91edf796d27aa2c564f00 (patch) | |
tree | e582c1329eca92d95adeba72a2472ecbb9e3cba5 | |
parent | fba7100c8217edec2cd41b5d8620514b274d0afd (diff) | |
download | luarocks-43b7c42ae09526a7c5e91edf796d27aa2c564f00.tar.gz luarocks-43b7c42ae09526a7c5e91edf796d27aa2c564f00.tar.bz2 luarocks-43b7c42ae09526a7c5e91edf796d27aa2c564f00.zip |
Fix fs.is_dir and fs.is_file detection on the Mac
Fixes #1021.
-rw-r--r-- | src/luarocks/fs/unix.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/unix.lua b/src/luarocks/fs/unix.lua index e4f14d52..eb7d870b 100644 --- a/src/luarocks/fs/unix.lua +++ b/src/luarocks/fs/unix.lua | |||
@@ -208,7 +208,7 @@ end | |||
208 | 208 | ||
209 | function unix.is_dir(file) | 209 | function unix.is_dir(file) |
210 | file = fs.absolute_name(file) | 210 | file = fs.absolute_name(file) |
211 | file = dir.normalize(file) .. "/" | 211 | file = dir.normalize(file) .. "/." |
212 | local fd, _, code = io.open(file, "r") | 212 | local fd, _, code = io.open(file, "r") |
213 | if code == 2 then -- "No such file or directory" | 213 | if code == 2 then -- "No such file or directory" |
214 | return false | 214 | return false |