summaryrefslogtreecommitdiffstats
path: root/Reaktor/commands
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
commit7fc73600e5ddf6a5f79688a2d3491cf108b0db71 (patch)
tree739c6ee23b57e1a0b6b886f1b6f398c8d92a0e98 /Reaktor/commands
parentacb6dc257d3b6e51c30bdfc650a7631cbfc68430 (diff)
Reaktor:nag can be explicitly be called
Diffstat (limited to 'Reaktor/commands')
-rwxr-xr-xReaktor/commands/nag5
1 files changed, 4 insertions, 1 deletions
diff --git a/Reaktor/commands/nag b/Reaktor/commands/nag
index 24414dd3..e552e11c 100755
--- a/Reaktor/commands/nag
+++ b/Reaktor/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