save wait_for_message contents

(cherry picked from commit 1334daaec0)
This commit is contained in:
Mark Andrews 2019-12-06 14:52:06 +11:00 committed by Michał Kępień
parent 89f34f0296
commit d60ca30d2d
2 changed files with 3 additions and 1 deletions

View file

@ -24,3 +24,4 @@ rm -f ns[123]/catalog[1234].example.db
rm -rf ns2/zonedir
rm -f ns*/*.nzd ns*/*.nzd-lock
rm -f ns*/managed-keys.bind*
rm -f wait_for_message.*

View file

@ -24,7 +24,8 @@ rndccmd() (
)
_wait_for_message() (
nextpartpeek "$1" | grep -F "$2" >/dev/null
nextpartpeek "$1" > wait_for_message.$n
grep -F "$2" wait_for_message.$n >/dev/null
)
wait_for_message() (