diff options
author | tv <tv@shackspace.de> | 2014-07-15 12:26:49 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-07-15 12:26:49 +0200 |
commit | 40b6bc968a5b6d1d12d2cddefeeb472fa8462f9a (patch) | |
tree | 65867955dbc158e740bea961569215c199c44fc8 /Reaktor/commands | |
parent | e2b4d5270b996322583038e3e1037b4e5c339bb9 (diff) |
Reaktor nag: s/superfluous/obsolete/g
Diffstat (limited to 'Reaktor/commands')
-rwxr-xr-x | Reaktor/commands/nag | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Reaktor/commands/nag b/Reaktor/commands/nag index 68035831..c07ed5b8 100755 --- a/Reaktor/commands/nag +++ b/Reaktor/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 |