From a726eb19fac8763058762f499bcae849cbf78186 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Fri, 19 Oct 2012 14:44:27 +0200 Subject: [PATCH] Fix the xpath script to enclose results in an element --- tests/scripts/xpath.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scripts/xpath.sh b/tests/scripts/xpath.sh index abb32b4..dec8476 100755 --- a/tests/scripts/xpath.sh +++ b/tests/scripts/xpath.sh @@ -37,10 +37,11 @@ then exit 1 fi - +echo "" if [ "$COUNT" == "0" ] then xmlstarlet sel -t -m "$QUERY" -c . -n "$FILE" else xmlstarlet sel -t -v "count($QUERY)" "$FILE" fi +echo "" -- 2.17.1