From 20cdc575988d772e5bafd3cd8a73745804ee42b6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 25 Sep 1999 18:46:16 +0000 Subject: Check for plot failure. svn path=/trunk/; revision=2607 --- growthplot | 8 ++++++-- 1 file 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* -- cgit v1.2.3