ctdb-tests: Avoid bulk output in $out, prefer $outfile
[vlendec/samba-autobuild/.git] / ctdb / tests / simple / 35_ctdb_getreclock.sh
index 0a2f3d5b92e72912566bd33debc5269bdb2db4ca..8cedd34045b37f85e86dcf113d1c1e45146bf1aa 100755 (executable)
@@ -25,7 +25,7 @@ if [ -z "$out" ] ; then
     exit 0
 fi
 
-n=$(echo "$out" | sort -u | wc -l)
+n=$(sort -u "$outfile" | wc -l)
 if [ "$n" = 1 ] ; then
        echo "GOOD: All nodes have the same recovery lock setting"
 else