From c8b63b54322302615906aa4fe281e8fb42afa9b2 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 17 Jul 2014 13:15:35 +0200 Subject: Reaktor:nag can be explicitly be called --- commands/nag | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'commands/nag') diff --git a/commands/nag b/commands/nag index 24414dd..e552e11 100755 --- a/commands/nag +++ b/commands/nag @@ -1,6 +1,5 @@ #! /bin/sh set -euf - if test -e nag.hosts.ls; then echo "nag seems to run already... if not, then delete $workdir/nag.*, please" exit 23 @@ -46,3 +45,7 @@ fi if test -n "$obsolete_services"; then echo obsolete services: $obsolete_services fi +# if asked directly, answer if there is nothing to nag about +if test -z "$missing_services$obsolete_services" -a -n "${_from:-}";then + echo "nothing to nag about" +fi -- cgit v1.2.3