mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-tests: Improve test portability
"wc -l" on some platforms (e.g. FreeBSD) contains leading spaces, so strip them. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
244eaad76a
commit
c6c81ea287
@ -18,7 +18,7 @@ if [ -z "$out" ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
n=$(sort -u "$outfile" | wc -l)
|
||||
n=$(sort -u "$outfile" | wc -l | tr -d '[:space:]')
|
||||
if [ "$n" = 1 ] ; then
|
||||
echo "GOOD: All nodes have the same recovery lock setting"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user