From cc77dc1d82e66ecf2061e349f7d48ae6e527248d Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 15 Jul 2014 12:26:49 +0200 Subject: Reaktor nag: s/superfluous/obsolete/g --- commands/nag | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/nag b/commands/nag index 6803583..c07ed5b 100755 --- a/commands/nag +++ b/commands/nag @@ -16,7 +16,8 @@ trap 'rm -f nag.hosts nag.services nag.patch' EXIT INT QUIT diff -u nag.hosts nag.services > nag.patch || : missing_services=$(sed -n '1d;2d;s/^-\(.*\)/\1/p' nag.patch | tr '\n' ' ') -superfluous_services=$(sed -n '1d;2d;s/^+\(.*\)/\1/p' nag.patch | tr '\n' ' ') +obsolete_services=$(sed -n '1d;2d;s/^+\(.*\)/\1/p' nag.patch | tr '\n' ' ') + # # output @@ -24,9 +25,9 @@ superfluous_services=$(sed -n '1d;2d;s/^+\(.*\)/\1/p' nag.patch | tr '\n' ' ') if test -n "$missing_services"; then echo missing services: $missing_services fi -if test -n "$superfluous_services"; then - echo superfluous services: $superfluous_services +if test -n "$obsolete_services"; then + echo obsolete services: $obsolete_services fi -if test -z "$missing_services$superfluous_services"; then +if test -z "$missing_services$obsolete_services"; then echo hosts and services are in sync fi -- cgit v1.2.3