mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
fix rndc test
use regex instead of exact string matching to deal with CR at end of line
This commit is contained in:
parent
1150a008b2
commit
a77b6a8abc
1 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,7 @@ do
|
|||
grep "addition 6" ns2/other.db > /dev/null && break
|
||||
sleep 1
|
||||
done
|
||||
serial=`awk '$3 == "serial" {print $1}' ns2/other.db`
|
||||
serial=`awk '$3 ~ /serial/ {print $1}' ns2/other.db`
|
||||
newserial=`expr $serial + 1`
|
||||
sed s/$serial/$newserial/ ns2/other.db > ns2/other.db.new
|
||||
echo 'frozen TXT "frozen addition"' >> ns2/other.db.new
|
||||
|
|
@ -270,7 +270,7 @@ do
|
|||
grep "addition 6" ns2/nil.db > /dev/null && break
|
||||
sleep 1
|
||||
done
|
||||
serial=`awk '$3 == "serial" {print $1}' ns2/nil.db`
|
||||
serial=`awk '$3 ~ /serial/ {print $1}' ns2/nil.db`
|
||||
newserial=`expr $serial + 1`
|
||||
sed s/$serial/$newserial/ ns2/nil.db > ns2/nil.db.new
|
||||
echo 'frozen TXT "frozen addition"' >> ns2/nil.db.new
|
||||
|
|
|
|||
Loading…
Reference in a new issue