From 934e6627ecf290b8428dea164e6c504623bee6f7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Apr 2017 19:12:04 +0200 Subject: prosodyctl: Return non-zero exit code from cert import if no certificates imported --- prosodyctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prosodyctl b/prosodyctl index e2f71223..4b29c406 100755 --- a/prosodyctl +++ b/prosodyctl @@ -896,6 +896,9 @@ function cert_commands.import(arg) end if imported[1] then show_message("Imported certificate and key for hosts "..table.concat(imported, ", ")); + else + show_warning("No certificates imported :("); + return 1; end end -- cgit v1.2.3