From: Christian Weiske Date: Sun, 9 Dec 2012 19:50:51 +0000 (+0100) Subject: more error checking for xsltproc X-Git-Url: https://git.cweiske.de/munin-heatpump.git/commitdiff_plain/9e434e8c65002ab35c377c97b9e5419f19cd0d9f more error checking for xsltproc --- diff --git a/heatpump-dimplex-wpm_ b/heatpump-dimplex-wpm_ index cbdf74f..694419e 100755 --- a/heatpump-dimplex-wpm_ +++ b/heatpump-dimplex-wpm_ @@ -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'