NULL pointer fix
[oweals/gnunet.git] / src / reclaim / test_reclaim_issue.sh
index 6a71470e177dbcd00f880712abb603ac569c6845..7ab8a698019fb4d256f83b207c2d973e3d2ea232 100755 (executable)
@@ -27,8 +27,8 @@ gnunet-arm -s -c test_reclaim.conf
 #gnunet-arm -i rest -c test_reclaim.conf
 gnunet-identity -C testego -c test_reclaim.conf
 gnunet-identity -C rpego -c test_reclaim.conf
-SUBJECT_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep rpego | awk '{print $3}')
-TEST_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep testego | awk '{print $3}')
+SUBJECT_KEY=$(gnunet-identity -d -e rpego -q -c test_reclaim.conf)
+TEST_KEY=$(gnunet-identity -d -e testego -q -c test_reclaim.conf)
 gnunet-reclaim -e testego -a email -V john@doe.gnu -c test_reclaim.conf > /dev/null 2>&1
 gnunet-reclaim -e testego -a name -V John -c test_reclaim.conf > /dev/null 2>&1
 #gnunet-reclaim -e testego -D -c test_reclaim.conf