aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/make.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/make.lua b/src/luarocks/make.lua
index 1dfe6473..4f70bafe 100644
--- a/src/luarocks/make.lua
+++ b/src/luarocks/make.lua
@@ -54,7 +54,7 @@ function make.run(...)
54 54
55 if not rockspec then 55 if not rockspec then
56 for file in fs.dir() do 56 for file in fs.dir() do
57 if file:match("rockspec$") then 57 if file:match("rockspec$") and fs.is_file(file) then
58 if rockspec then 58 if rockspec then
59 return nil, "Please specify which rockspec file to use." 59 return nil, "Please specify which rockspec file to use."
60 else 60 else