aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/build.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua
index fb9e4a4f..9a67f00b 100644
--- a/src/luarocks/build.lua
+++ b/src/luarocks/build.lua
@@ -314,12 +314,11 @@ function run(...)
314 end 314 end
315 assert(type(version) == "string" or not version) 315 assert(type(version) == "string" or not version)
316 316
317 local ok, err = fs.check_command_permissions(flags)
318 if not ok then return nil, err end
319
320 if flags["pack-binary-rock"] then 317 if flags["pack-binary-rock"] then
321 return pack.pack_binary_rock(name, version, do_build, name, version) 318 return pack.pack_binary_rock(name, version, do_build, name, version)
322 else 319 else
320 local ok, err = fs.check_command_permissions(flags)
321 if not ok then return nil, err end
323 return do_build(name, version) 322 return do_build(name, version)
324 end 323 end
325end 324end