Changeset

11296:06bb0cdef50b

util.prosodyctl: Always return exit code from luarocks os.exit(true) errors on Lua 5.1
author Kim Alvefur <zash@zash.se>
date Thu, 21 Jan 2021 19:15:28 +0100
parents 11295:50ea7d9143ad
children 11297:2e9d4c517919
files util/prosodyctl.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/util/prosodyctl.lua	Thu Jan 21 19:11:27 2021 +0100
+++ b/util/prosodyctl.lua	Thu Jan 21 19:15:28 2021 +0100
@@ -225,10 +225,7 @@
 				dir = dir; op = operation; mod = mod; server = server;
 		}));
 	if type(ok) == "number" then ok, code = ok == 0, ok; end
-	if not ok then
-		return code;
-	end
-	return true;
+	return code;
 end
 
 return {