aboutsummaryrefslogtreecommitdiffstats
path: root/growthplot
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-25 18:46:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-25 18:46:16 +0000
commit20cdc575988d772e5bafd3cd8a73745804ee42b6 (patch)
tree00cd02811828ec389ebfa4a3b04006ecaa719fae /growthplot
parent1daa514dfaae67490934259ad41b86de628b5a0f (diff)
downloadfetchmail-20cdc575988d772e5bafd3cd8a73745804ee42b6.tar.gz
fetchmail-20cdc575988d772e5bafd3cd8a73745804ee42b6.tar.bz2
fetchmail-20cdc575988d772e5bafd3cd8a73745804ee42b6.zip
Check for plot failure.
svn path=/trunk/; revision=2607
Diffstat (limited to 'growthplot')
-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*