aboutsummaryrefslogtreecommitdiffstats
path: root/commands/nag
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-07-17 13:15:35 +0200
committermakefu <root@pigstarter.de>2014-07-17 13:15:35 +0200
commitc8b63b54322302615906aa4fe281e8fb42afa9b2 (patch)
tree43c16f10272d03980e4ec3ffab7f9a1454d584b2 /commands/nag
parent3390e1df24dbce69a4b39cff363d6616d4dd376c (diff)
Reaktor:nag can be explicitly be called
Diffstat (limited to 'commands/nag')
-rwxr-xr-xcommands/nag5
1 files changed, 4 insertions, 1 deletions
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