Printing the result is useful.

This commit is contained in:
Erik Thuning 2021-10-21 15:47:38 +02:00 committed by GitHub
parent 3b967c8066
commit b6d0ceae97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
nmgrep

@ -24,6 +24,7 @@ cd /var/log/netmonitor
for logfile in mappings.*; do
result=$(find_host "$hostname" "$logfile")
if ! [ -z "$result" ]; then
echo "$result"
exit 0
fi
done