]> Pileus Git - ~andy/fetchmail/commitdiff
Check for plot failure.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 25 Sep 1999 18:46:16 +0000 (18:46 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 25 Sep 1999 18:46:16 +0000 (18:46 -0000)
svn path=/trunk/; revision=2607

growthplot

index e5288667f96a2f5f6c42cc8c97e5669863c190e1..0ded09df1b8e779951f45adab7712a2b0d608d27 100755 (executable)
@@ -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*