ctdb/tests/eventscripts: Avoid errors on broken pipe
authorMartin Schwenke <martin@meltin.net>
Tue, 28 Jan 2014 03:34:15 +0000 (14:34 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 31 Jan 2014 04:30:37 +0000 (05:30 +0100)
commitb112a3317cbedc73a6e17b3f711fec84f0d41d4e
tree7de656aaa66ae992b9c63715be0a2595e16ac398
parent1640f36d5831b2575d117fac335f3324ceefa9f8
ctdb/tests/eventscripts: Avoid errors on broken pipe

ctdb_get_my_public_addresses() attempts to echo things and this causes
an error if head has taken the first line and the pipe is closed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jan 31 05:30:38 CET 2014 on sn-devel-104
ctdb/tests/eventscripts/scripts/local.sh