diff options
author | Martin Schwenke <martin@meltin.net> | 2015-04-19 19:52:55 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2015-04-27 03:32:11 +0200 |
commit | 0ae57588eb99ef18888a8ace25a49efef1301fff (patch) | |
tree | bd453c9e9f43acaaeec4c717c194b8060f0c1ba9 /ctdb | |
parent | 1092f9755fed331251ae508f1e04e85dc47ae902 (diff) | |
download | samba-0ae57588eb99ef18888a8ace25a49efef1301fff.tar.gz |
ctdb-scripts: Simplify a command pipeline
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/config/events.d/62.cnfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/events.d/62.cnfs b/ctdb/config/events.d/62.cnfs index a3e666c7fdc..339eaef3cb0 100755 --- a/ctdb/config/events.d/62.cnfs +++ b/ctdb/config/events.d/62.cnfs @@ -53,7 +53,7 @@ case "$1" in # Wait until we no longer serve any ip addresses at all ctdb_get_pnn - while `ctdb -X ip | cut -d'|' -f3 | egrep "^$pnn$" >/dev/null`; do + while ctdb -X ip | grep -q "^|.*|${pnn}|\$" ; do sleep 1 done ;; |