From d8ed6623cfb2ef490938aa7da69dcf984d6bf23d Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 28 Oct 2012 20:41:57 +0100 Subject: [PATCH] nsd-dynipwatch: make grep silent --- nsd-dynipwatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsd-dynipwatch b/nsd-dynipwatch index fd064bb..a002f95 100755 --- a/nsd-dynipwatch +++ b/nsd-dynipwatch @@ -52,7 +52,7 @@ function run() newip=`cat ${watchfile}` echo "`date '+%a %F %T'` :: ${oldip} => ${newip}." - if ! echo "${newip}" | egrep "^([0-9]+\\.)+[0-9]+$" ; then + if ! echo "${newip}" | egrep -q "^([0-9]+\\.)+[0-9]+$" ; then echo "Wrong format of new IP address." continue fi -- 2.39.5