prosodyctl: Rename variable for soft-require success to improve readability
authorKim Alvefur <zash@zash.se>
Wed, 19 Apr 2017 20:38:55 +0200
changeset 8102 04eaaeb89a05
parent 8101 ee1c81450345
child 8103 1773559b03a8
prosodyctl: Rename variable for soft-require success to improve readability
prosodyctl
--- a/prosodyctl	Wed Apr 19 20:26:09 2017 +0200
+++ b/prosodyctl	Wed Apr 19 20:38:55 2017 +0200
@@ -136,9 +136,9 @@
 local switched_user, current_uid;
 
 local want_pposix_version = "0.4.0";
-local ok, pposix = pcall(require, "util.pposix");
+local have_pposix, pposix = pcall(require, "util.pposix");
 
-if ok and pposix then
+if have_pposix and pposix then
 	if pposix._VERSION ~= want_pposix_version then print(string.format("Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version)); return; end
 	current_uid = pposix.getuid();
 	local arg_root = arg[1] == "--root";