Commit a77b6a8a authored by Evan Hunt's avatar Evan Hunt

fix rndc test

use regex instead of exact string matching to deal with CR at end of line
parent 1150a008
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment