more error checking for xsltproc
authorChristian Weiske <cweiske@cweiske.de>
Sun, 9 Dec 2012 19:50:51 +0000 (20:50 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 9 Dec 2012 19:50:51 +0000 (20:50 +0100)
heatpump-dimplex-wpm_

index cbdf74f01493c1f829a88f80a2a358e733fa9645..694419e6a6c774674ae49ccd4f7e6aedca04cf3c 100755 (executable)
@@ -108,7 +108,11 @@ if [ "$ret" -ne 0 ]; then
     exit 1
 fi
 
-data=`echo "$xml" | xsltproc paths.xsl -`
+data=`echo "$xml" | xsltproc paths.xsl -`; ret=$?
+if [ "$ret" -ne 0 ]; then
+    echo "Error running xsltproc"
+    exit 2
+fi
 
 #Outdoor temperature
 echo 'multigraph heatpump_dimplex_wpm_outtemp'