aboutsummaryrefslogtreecommitdiff
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-19 20:38:55 +0200
committerKim Alvefur <zash@zash.se>2017-04-19 20:38:55 +0200
commitfd48fd02656b22f2e4f5d2fa02457faa669ecef7 (patch)
treebfe6637c1392451b54e84bd480b0147730fc080e /prosodyctl
parent87971c92854a97661e29f127530d01c4ea6b9584 (diff)
downloadprosody-im-server-fd48fd02656b22f2e4f5d2fa02457faa669ecef7.tar
prosody-im-server-fd48fd02656b22f2e4f5d2fa02457faa669ecef7.zip
prosodyctl: Rename variable for soft-require success to improve readability
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl4
1 files changed, 2 insertions, 2 deletions
diff --git a/prosodyctl b/prosodyctl
index 63fd6485..1949edcc 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -136,9 +136,9 @@ dependencies.log_warnings();
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";