aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgrowthplot8
1 files changed, 6 insertions, 2 deletions
diff --git a/growthplot b/growthplot
index e5288667..0ded09df 100755
--- a/growthplot
+++ b/growthplot
@@ -66,8 +66,12 @@ plot [] [0:] '/tmp/growthnumbers$$' using 6:5 \
EOF
# The gnuplot driver for PNG doesn't do color
-gnuplot /tmp/growthimage$$ >growth.gif
-gif2png -s -d growth.gif
+if gnuplot /tmp/growthimage$$ >growth.gif
+then
+ gif2png -s -d growth.gif
+else
+ echo "Plot failed."
+fi
rm -f /tmp/growth*