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 cbdf74f..694419e 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'