diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-19 20:38:55 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-19 20:38:55 +0200 |
commit | b8928f74008d28dea5b0947b39ec5d65c9c7daed (patch) | |
tree | 8198875fffe315109be266b97eebda3e7b0eebbf /prosodyctl | |
parent | ca280495d6abedc2616ee7de78796c400991837f (diff) | |
download | prosody-b8928f74008d28dea5b0947b39ec5d65c9c7daed.tar.gz prosody-b8928f74008d28dea5b0947b39ec5d65c9c7daed.zip |
prosodyctl: Rename variable for soft-require success to improve readability
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"; |