aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-21 19:20:08 +0100
committerKim Alvefur <zash@zash.se>2021-01-21 19:20:08 +0100
commitd35c2451b86a6f2c0c9a4fd86f4cbefe0bfbf344 (patch)
treeefe39acce38211effd0c6bdcf0edda13d2d3bf6e /prosodyctl
parent57a971534d4c1da1c166e21024038f2ca8459746 (diff)
downloadprosody-d35c2451b86a6f2c0c9a4fd86f4cbefe0bfbf344.tar.gz
prosody-d35c2451b86a6f2c0c9a4fd86f4cbefe0bfbf344.zip
prosodyctl: Move message after condition
If the condition is false, the message becomes a lie!
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index def0b7e2..898ea1ce 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -78,7 +78,6 @@ function commands.install(arg)
show_usage([[install]], [[Installs a prosody/luarocks plugin]]);
return 1;
end
- show_message("Installing %s in %s", arg[1], prosody.paths.installer);
-- TODO finalize config option name
local server = configmanager.get("*", "plugin_server");
if not server then
@@ -86,6 +85,7 @@ function commands.install(arg)
-- see https://prosody.im/doc/TODO documentation
return 1;
end
+ show_message("Installing %s in %s", arg[1], prosody.paths.installer);
local ret = call_luarocks("install", arg[1], server);
if ret == 0 then
prosodyctl.show_module_configuration_help(arg[1]);