Improve debugability by capturing intents command output

Change-Id: I5c7b39b101e709bb4ef57159cd31b6caeaa26fcd
diff --git a/tools/test/bin/onos-check-intent b/tools/test/bin/onos-check-intent
index 900373b..03c3215 100755
--- a/tools/test/bin/onos-check-intent
+++ b/tools/test/bin/onos-check-intent
@@ -12,7 +12,8 @@
 
 set -x
 for i in 1 2 3; do
-    onos $target "onos:intents" | grep "state=$2" >> $aux && cat $aux && exit 0
+    onos $target "onos:intents" >> $aux
+    grep "state=$2" $aux && cat $aux && exit 0
     sleep 1
 done